Hello Team,
We have to remove caching for specific file and have configured in vhost with below rules.
# For Remove caching for i18n files
<LocationMatch "^/etc\.clientlibs/myproject/clientlibs/clientlib-site/resources/i18n/.*\.$">
Header Set Pragma "no-cache"
Header Set Cache-Control "max-age=0, no-store, no-cache, must-revalidate"
Header Unset ETag
FileETag None
</LocationMatch>
But file getting cached and seeing response header like below
age: 64439
Can you please advise on how we can achieve avoiding cache this ?
Solved! Go to Solution.
Views
Replies
Total Likes
Check below dispatcher configuration document to resolve your issue
https://stackoverflow.com/questions/66053816/how-to-disable-dispatcher-cache-on-page-template-in-aem
Check below dispatcher configuration document to resolve your issue
https://stackoverflow.com/questions/66053816/how-to-disable-dispatcher-cache-on-page-template-in-aem
Hi @Nitin_laad thanks for your reply.
For me, its resolved with below updated expression. I had small issue regex hence path was not matching.
<LocationMatch "^/etc\.clientlibs/myproject/clientlibs/clientlib-site/resources/i18n/.*\.json$">
Views
Likes
Replies
Views
Likes
Replies