Jump to content

Etag and expires for favicon.ico?


random1

Recommended Posts

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?

Link to comment
https://forums.phpfreaks.com/topic/190622-etag-and-expires-for-faviconico/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.