Requesting better explanation for etag/expiration of favicon.ico

Posted by syn4k on Server Fault See other posts from Server Fault or by syn4k
Published on 2012-03-27T18:22:58Z Indexed on 2012/06/10 22:42 UTC
Read the original article Hit count: 285

Filed under:
|
|
|
|

Following this article: Configuring favicon with expires header in htaccess

Using YSlow, I keep getting:

(no expires) http://devwww.someplace.com/favicon.ico

Also, YSlow indicates:

Grade C on Configure entity tags (ETags)

for the same file.

My relevant config (.htaccess):

# Configure ETags
FileETag MTime Size

<IfModule mod_expires.c>
    # Enable Expires Headers for this directory and sub directories that don't override it
    ExpiresActive on

    # Set default expiration for all files
    ExpiresDefault "access plus 24 hours"

    # Add Proper MIME-Type for Favicon
    AddType image/x-icon .ico

    # Set specific expriation by file type
    ExpiresByType image/x-icon "access plus 1 month"
    ExpiresByType image/ico "access plus 1 month"
    ExpiresByType image/icon "access plus 1 month"
</IfModule>

As you can see, I am setting both, etags and expiration however, both seem to be ignored. Yes, mod_expires is being loaded by my Apache configuration.

© Server Fault or respective owner

Related posts about apache2

Related posts about .htaccess