how to disable CDN cache for a specific page or component in AEM? | Community
Skip to main content
Level 4
May 10, 2022
Solved

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

  • May 10, 2022
  • 3 replies
  • 2267 views

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.

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

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.

3 replies

arunpatidar
Community Advisor
Community Advisor
May 10, 2022

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
Ravi_Pampana
Community Advisor
Community Advisor
May 10, 2022

Hi.

 

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

vishnuvardhank1Accepted solution
Level 2
May 10, 2022

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.