Site images don't refresh after setting expired headers on .htaccess
- by Miguel Hernandez
I have a site that uses a CSS sprite for all the images.
I set the .htaccess file to set the expired headers to a future time as they recommend to improve site performance.
However, when I updated the sprite image none of my browsers on two different computers seem to fetch the new image.
I deleted the .htaccess serveral times but no luck.
I am sure this must be easy as pie to fix but right now I am out of options.
Here is the code inside my .htaccess file:
# CONFIGURE media caching
#
Header unset ETag
FileETag None
<FilesMatch "(?i)^.*\.(ico|flv|jpg|jpeg|png|gif|js|css)$">
Header unset Last-Modified
Header set Expires "Fri, 21 Dec 2012 00:00:00 GMT"
Header set Cache-Control "public, no-transform"
</FilesMatch>
<IfModule mod_deflate.c>
<FilesMatch "\.(js|css)$">
SetOutputFilter DEFLATE
</FilesMatch>
</IfModule>
Thanks!