Greetings everyone,
I am hoping to get some clarification on how to resolve failing at “Leverage browser caching of static assets.”
I am an Apache setup with my hosting company. I tried so many different setups in my htaccess file which I received from discussions here and elsewhere however I just cannot get my images to show it’s caching.
Some of the things I tried are (caching for 2 days)…
<filesMatch “.(png|jpg|ico|gif|jpeg)$”>
Header set Cache-Control “max-age=172800, public, must-revalidate”
<FilesMatch “.(png|jpg|ico|gif|jpeg)$”>
Header set Cache-Control “max-age=172800, public, must-revalidate”
Header unset Pragma
Header unset Last-Modified
Header unset ETag
FileETag None
ExpiresActive On
ExpiresDefault A0
<filesMatch “.(png|jpg|ico|gif|jpeg)$”>
Header set Cache-Control “max-age=172800, public, must-revalidate”
I just don’t know what I am doing wrong or missing. I would GREATLY appreciate any assistance or feedback.
Thanks!