Skip to content
Browse files

changing mimetype of .ico files to "image/x-icon". Details follow:

While Wikipedia would lead you to be believe one thing...
... specifically that the 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

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

Thanks a bunch Jonathan Neal. Fixes #219
  • Loading branch information...
paulirish committed Dec 15, 2010
1 parent 977c042 commit 37b5fec090d00f38de64b591bcddcb205aadf8ee
Showing with 2 additions and 2 deletions.
  1. +2 −2 .htaccess
@@ -94,7 +94,7 @@ AddType font/opentype otf
AddType font/woff woff

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

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

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

3 comments on commit 37b5fec


This comment has been minimized.

Copy link

replied Dec 15, 2010

I just went to +1 this (in regards to Jimmy Wales' face) then realized I'm not on Stack Overflow.

Also, I've updated the Wikipedia articles. :-)


This comment has been minimized.

Copy link

replied Feb 11, 2011

For future reference:

We use "image/x-icon" because that's the MIME type we've always used. Someone at some point (AFAIK, not related to Microsoft) proposed registration of the MIME type as "", but Windows doesn't actually use that, it uses image/x-icon.

— Eric Law (Microsoft) · source


This comment has been minimized.

Copy link
Member Author

replied Feb 11, 2011

Eric's totally reading the boilerplate commits.

Please sign in to comment.
You can’t perform that action at this time.