need to modify header for clientlibs cache
my project clientlib-react.lc-e686exxxxxxxlc.min.js file has below headers ,
please advice how to reducing this cache to 1hr

my project clientlib-react.lc-e686exxxxxxxlc.min.js file has below headers ,
please advice how to reducing this cache to 1hr

Hi @vishnu9 ,
You may use dispatcher Header set
Js/Css files for(12 hours)
<LocationMatch "^/etc\.clientlibs/.*\.(?i:js|css|ttf|woff2)$">
Header set Cache-Control "max-age=2592000,stale-while-revalidate=43200,stale-if-error=43200,public,immutable" "expr=%{REQUEST_STATUS} < 400"
Header set Age 0
</LocationMatch>
for 1 hour
Header set Cache-Control "max-age=3600,stale-while-revalidate=3600,stale-if-error=3600,public,immutable" "expr=%{REQUEST_STATUS} < 400"
Note:- Instead of refreshing whole clientlibs every hour you may create separate clientlib and write rules of 1 hour for that cleintlib only and for other clientlib you may keep 12 hrs
Thanks
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.