Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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

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 #219
commit 37b5fec090d00f38de64b591bcddcb205aadf8ee 1 parent 977c042
Paul Irish authored December 15, 2010

Showing 1 changed file with 2 additions and 2 deletions. Show diff stats Hide diff stats

  1. 4  .htaccess
4  .htaccess
@@ -94,7 +94,7 @@ AddType font/opentype                  otf
94 94
 AddType font/woff                      woff
95 95
 
96 96
 # assorted types                                      
97  
-AddType image/vnd.microsoft.icon       ico
  97
+AddType image/x-icon                   ico
98 98
 AddType image/webp                     webp
99 99
 AddType text/cache-manifest            manifest
100 100
 AddType text/x-component               htc
@@ -196,7 +196,7 @@ AddType application/octet-stream       safariextz
196 196
   ExpiresByType application/rss+xml       "access plus 1 hour"
197 197
 
198 198
 # favicon (cannot be renamed)
199  
-  ExpiresByType image/vnd.microsoft.icon  "access plus 1 week" 
  199
+  ExpiresByType image/x-icon              "access plus 1 week" 
200 200
 
201 201
 # media: images, video, audio
202 202
   ExpiresByType image/gif                 "access plus 1 month"

0 notes on commit 37b5fec

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