Skip to content


Subversion checkout URL

You can clone with
Download ZIP
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...
1 parent 977c042 commit 37b5fec090d00f38de64b591bcddcb205aadf8ee @paulirish committed
Showing with 2 additions and 2 deletions.
  1. +2 −2 .htaccess
4 .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"

0 comments on commit 37b5fec

Please sign in to comment.
Something went wrong with that request. Please try again.