Expand my Community achievements bar.

SOLVED

how to disable CDN cache for a specific page or component in AEM?

Avatar

Level 5

hi, how to disable CDN cache for a specific page or component in AEM please provide , what needs to be done here so that I can remove cache from a specific page.

1 Accepted Solution

Avatar

Correct answer by
Level 2

Hi @rahul234dabas 

 

If you want a particular page to be denied from getting cached permanently and need not want to go through a process of CDN cache clearance, then you can follow -

  1. Make CDN follow/respect your origin cache settings
  2. Set the value of "s-maxage" of the cache-control header to zero so that it won't get cached at CDNs.

View solution in original post

3 Replies

Avatar

Community Advisor

Hi @rahul234dabas 

you need to create a flush agent for clearing cdn cache

https://aemproblog.wordpress.com/2016/07/27/cdn-cache-flush-approaches/

 



Arun Patidar

Avatar

Community Advisor

Hi.

 

If you are using akamai as CDN, you can refer https://aem4beginner.blogspot.com/creating-custom-akamai-replication

Avatar

Correct answer by
Level 2

Hi @rahul234dabas 

 

If you want a particular page to be denied from getting cached permanently and need not want to go through a process of CDN cache clearance, then you can follow -

  1. Make CDN follow/respect your origin cache settings
  2. Set the value of "s-maxage" of the cache-control header to zero so that it won't get cached at CDNs.