Exclude CDN cache for SDI | Community
Skip to main content
Level 5
September 10, 2020
Question

Exclude CDN cache for SDI

  • September 10, 2020
  • 2 replies
  • 1805 views

Hello Community - We are setting up the environment to enable SDI so that the content won't be cached for dynamic components. The only issue is, the CDN is caching the "nocache.html" files which ultimately caused the issues. If we verify using dispatcher URL, we see the expected changes. is there any way to exclude the CDN cache for SDI changes?

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

2 replies

Singaiah_Chintalapudi
Level 7
September 10, 2020

It depends on type of the CDN you would use. There is definitely a way to use but you'll have to make few changes on top of SDI/SSI.

For example, you can use ESI in Akamai: https://www.akamai.com/us/en/multimedia/documents/technical-publication/akamai-esi-faq-technical-publication.pdf

 

Thanks,

Singaiah

v1101Author
Level 5
September 10, 2020
@singaiah_chintalapudi - We are using Akamai (CDN). Not sure if we need to do any specific changes in Akamai to exclude the cache for the selector "nocache". Do we need to switch it to "ESI" if we have Akamai as a CDN?
ChitraMadan
Community Advisor
Community Advisor
September 10, 2020

@v1101 ,

 

There is a very nice blog https://medium.com/@techforum/sling-dynamic-include-deep-dive-dynamically-include-page-components-in-aem-5420a696cd02

 

It mentions all the configurations to be set up in Dispatcher and ESI.

v1101Author
Level 5
September 10, 2020
@chitramadan - Thanks for your response. I have already gone through this article. Actually we are not sure how to include ESI in Akamai and also disable the CDN cache for the specific selector.