Skip to content

Commit

Permalink
changing mimetype of .ico files to "image/x-icon". Details follow:
Browse files Browse the repository at this point in the history
While Wikipedia would lead you to be believe one thing...
  http://en.wikipedia.org/wiki/ICO_(file_format)#MIME_type
... specifically that the vnd.microsoft.icon mime type is correct..

Well that's wrong.

It does work in the address bar, IE can also use an .ico file as an
<img src> in some cases. But it has to be served as image/x-icon
instead.

So thanks a lot wikipedia & jimmy wales' face. Psh.

Thanks a bunch Jonathan Neal. Fixes h5bp#219
  • Loading branch information
paulirish committed Dec 15, 2010
1 parent 977c042 commit 37b5fec
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .htaccess
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ AddType font/opentype otf
AddType font/woff woff

# assorted types
AddType image/vnd.microsoft.icon ico
AddType image/x-icon ico
AddType image/webp webp
AddType text/cache-manifest manifest
AddType text/x-component htc
Expand Down Expand Up @@ -196,7 +196,7 @@ AddType application/octet-stream safariextz
ExpiresByType application/rss+xml "access plus 1 hour"

# favicon (cannot be renamed)
ExpiresByType image/vnd.microsoft.icon "access plus 1 week"
ExpiresByType image/x-icon "access plus 1 week"

# media: images, video, audio
ExpiresByType image/gif "access plus 1 month"
Expand Down

0 comments on commit 37b5fec

Please sign in to comment.