AEMaaCS - How to remove default Cache-Control on HTML responses?
Hi All,
I am trying to disable cache for HTML responses. I have these rules already in dispatcher config,
<LocationMatch "^/content/.*\.html$">
Header always unset Cache-Control
Header always unset Expires
Header always set Cache-Control "no-store, no-cache, max-age=0, must-revalidate"
Header always set Pragma "no-cache"
Header always set Surrogate-Control "no-store"
</LocationMatch>
However, when I check response headers I still see this:
cache-control: no-store, no-cache, max-age=0, must-revalidate,max-age=300
It looks like max-age=300 is being appended somewhere. I want to know from where this default Cache-Control: max-age=300 is getting added? What is the recommended way to override / remove this so my own no-cache rules are effective?
Thanks in advance !
