Skip to main content
Level 5
Sep 10, 2020 5:19 PM UTC
Question

Exclude CDN cache for SDI

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.

5 replies

Singaiah_Chintalapudi
Level 7
Sep 10, 2020 9:22 PM UTC

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

Translate
v1101Author
Level 5
Sep 10, 2020 9:25 PM UTC
@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?
Translate
ChitraMadan
Community Advisor
Community Advisor
Sep 10, 2020 10:30 PM UTC

@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.

Translate
v1101Author
Level 5
Sep 10, 2020 11:09 PM UTC
@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.
Translate