Site images don't refresh after setting expired headers on .htaccess
Posted
by Miguel Hernandez
on Stack Overflow
See other posts from Stack Overflow
or by Miguel Hernandez
Published on 2009-11-20T03:04:57Z
Indexed on
2010/04/14
12:03 UTC
Read the original article
Hit count: 265
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!
© Stack Overflow or respective owner