Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

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"

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.

share|improve this question
Have you checked that you are loading mod_expires in your Apache config? –  Ladadadada Mar 27 '12 at 18:35
Yes, It is being loaded in my Apache configuration. –  syn4k Mar 27 '12 at 18:44

1 Answer 1

I´m using:

<FilesMatch "favicon.ico">
    # Will disable the eTag for the favicon.ico
    Header unset ETag
    FileETag None

which removed the etag from the favicon.ico for me.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.