How to avoid leverage-browser-caching notice
-
HI there,
first to say you congratulations for your plugin. I’m using on every installation I do with wordpress, and by the moment I am very, very happy with the results.Just a little thing… The merged .js file always show a leverage-browser-caching notice in GTMetrix. It seems that as the files is generated on the fly my htaccess is not working with the generated file. Please, see the notice below:
——
Leverage browser caching for the following cacheable resources:https://mysite.com/wp-content/plugins/aph-merge-scripts/merged/merged-script-1532987345.js (2 days 12 hours)
——–All my javascript files are fixed to the following cache and expiring values in htaccess:
Header set Cache-Control “max-age=216000, private”
ExpiresByType text/javascript “access plus 1 year”
ExpiresByType application/javascript “access plus 1 year”
ExpiresByType application/x-javascript “access plus 1 year”Is there any way to apply a longer value to the cache-control tag?
Thanks in advance,
Alberto
- The topic ‘How to avoid leverage-browser-caching notice’ is closed to new replies.