random1 Posted February 2, 2010 Share Posted February 2, 2010 Hey all, I have expiring content and etags configured for my apache installation using .htaccess. But the file 'favicon.ico' does has an etag and no expiry date. My code segment: # Expire content <IfModule mod_expires.c> ExpiresActive On ExpiresDefault "now" ExpiresByType text/html "now" ExpiresByType text/xml "now" ExpiresByType text/php "access plus 1 years" ExpiresByType text/css "access plus 1 years" ExpiresByType text/javascript "access plus 1 years" ExpiresByType application/javascript "access plus 1 years" ExpiresByType application/x-javascript "access plus 1 years" ExpiresByType text/ecmascript "access plus 1 years" ExpiresByType image/gif "access plus 1 years ExpiresByType image/png "access plus 1 years" ExpiresByType image/jpeg "access plus 1 years" ExpiresByType image/ico "access plus 1 years" ExpiresByType image/icon "access plus 1 years" ExpiresByType image/x-icon "access plus 1 years" ExpiresByType video/x-flv "access plus 1 years" ExpiresByType video/quicktime "access plus 1 years" ExpiresByType application/x-shockwave-flash "access plus 1 years" ExpiresByType application/pdf "access plus 1 years" <FilesMatch "\.(png|jpg|gif|css|flv|ico)$"> Header set Cache-Control "max-age=290304000, public" </FilesMatch> <FilesMatch "\.(php|html)$"> Header set Cache-Control "max-age=0, must-revalidate" </FilesMatch> </IfModule> Any ideas? Quote Link to comment https://forums.phpfreaks.com/topic/190622-etag-and-expires-for-faviconico/ Share on other sites More sharing options...
random1 Posted February 3, 2010 Author Share Posted February 3, 2010 Seems like it was a cache issue in the browser.. I cleared the cache and it seems fine. Quote Link to comment https://forums.phpfreaks.com/topic/190622-etag-and-expires-for-faviconico/#findComment-1005814 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.