I was checking out that my last website behaves as it is supposed to and happened to notice that the site favorite icon is not getting gzipped and does expire immediately instead of being cached.
Relevant sections in .htaccess:
The file URL is http://www.composeyourdesign.com/favicon.ico and this is what the server returns:
Everything else on that domain is being duly compressed and expires one month in the future, just the favicon is misbehaving. Anybody got a clue?
Relevant sections in .htaccess:
Code:
<IfModule mod_expires.c> ExpiresActive On ExpiresDefault "access plus 1 month" ExpiresByType image/gif "access plus 1 year" ExpiresByType image/jpeg "access plus 1 year" ExpiresByType image/png "access plus 1 year" ExpiresByType image/x-icon "access plus 1 year" ExpiresByType image/ico "access plus 1 year" [ ...] </IfModule>
Code:
<IfModule mod_deflate.c> <IfModule mod_setenvif.c> <IfModule mod_headers.c> SetEnvIfNoCase ^(Accept-EncodXng|X-cept-Encoding|X{15}|~{15}|-{15})$ ^((gzip|deflate)\s*,?\s*)+|[X~-]{4,13}$ HAVE_Accept-Encoding RequestHeader append Accept-Encoding "gzip,deflate" env=HAVE_Accept-Encoding </IfModule> </IfModule> <IfModule mod_filter.c> AddOutputFilterByType DEFLATE [...] image/svg+xml \ image/x-icon \ image/ico \ text/css [...] </IfModule> </IfModule> <IfModule mod_gzip.c> mod_gzip_on Yes mod_gzip_item_exclude reqheader "User-agent: Mozilla/4.0[678]" mod_gzip_item_exclude mime ^image/.* [...] mod_gzip_item_include mime ^image/x-icon mod_gzip_item_include mime ^image/ico mod_gzip_item_include file \.html$ mod_gzip_item_include file index$ mod_gzip_dechunk Yes mod_gzip_add_header_count Yes mod_gzip_send_vary Yes </IfModule>
Code:
HTTP/1.1 200 OK Cache-Control: no-transform Expires: Sat, 06 Aug 2016 12:24:27 GMT Last-Modified: Thu, 16 Jul 2015 15:25:08 GMT Content-Type: image/x-icon Content-Length: 7406 Date: Fri, 07 Aug 2015 12:24:27 GMT Accept-Ranges: bytes Server: LiteSpeed Connection: close X-Content-Type-Options: nosniff X-Frame-Options: DENY X-XSS-Protection: 1;mode=block Access-Control-Allow-Origin: http://composeyourdesign.com P3Pv1: policyref='/w3c/p3p.xml', CP='CAO DSP COR CUR ADM DEV OUR IND PHY ONL UNI COM NAV INT DEM PRE'
Comment