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

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.