Expand my Community achievements bar.

Don’t miss the AEM Skill Exchange in SF on Nov 14—hear from industry leaders, learn best practices, and enhance your AEM strategy with practical tips.
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.