Results 1 to 3 of 3

Thread: Favicon puzzle

  1. #1
    Senior Member
    Join Date
    Mar 2004

    Question Favicon puzzle

    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:

    <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 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 mod_filter.c>
            AddOutputFilterByType DEFLATE [...]
                                          image/svg+xml \
                                          image/x-icon \
    				      image/ico \
                                          text/css [...]
     <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
    The file URL is and this is what the server returns:

    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
    P3Pv1: policyref='/w3c/p3p.xml', CP='CAO DSP COR CUR ADM DEV OUR IND PHY ONL UNI COM NAV INT DEM PRE'
    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?

  2. #2
    Administrator AndrewT's Avatar
    Join Date
    Mar 2004
    Tulsa, OK


    I'm not sure I understand the issue. It's showing expired a year later as you have specified.

  3. #3
    Senior Member
    Join Date
    Mar 2004


    You're right, bumping it up to one year must have done the trick and I misread the resulting expiration date.

    I'd still expect the icon to be compressed. anyway (I found out that .ico files do compress very well).

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts