IE has trouble viewing favicon.ico #219

Closed
jonathantneal opened this Issue Nov 25, 2010 · 8 comments

Projects

None yet

3 participants

@jonathantneal
Member

IE has trouble viewing the shortcut icon, favicon.ico. This issue is consistent in all IE versions that I tested, ranging from IE6 to IE9b2. I believe this issue is caused by the output filter on line 124 of .htaccess which reads:

AddOutputFilterByType DEFLATE text/xml application/xml text/x-component

A simple way to test IE's reading of the shortcut icon is to add the follow HTML snippet to a file in the same directory:

<img src="favicon.ico" />

@ghost
ghost commented Nov 27, 2010

I'm not sure how the lines you quoted would affect favicon.ico displaying properly. Could you give us an example of how you are using the boilerplate (link/code/details etc.) and specifically what the "trouble" is?

@ghost
ghost commented Nov 27, 2010

Well I can confirm that site isn't working in Internet Explorer 6-9 but I'm not sure why.

Here's some screenshots to clarify the issue for people who cannot (or prefer not to) load up IE.

Chromium:
http://img94.imageshack.us/img94/2138/chromium.png

IE6 (7, 8 and 9 are the same)
http://img132.imageshack.us/img132/7321/75077832.png

I'll investigate some more when I have the time.

@paulirish
Member

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. Closed by 37b5fec

@davidmurdoch

I've updated the Wikipedia article.

@paulirish
Member

They were reverted. :)

@davidmurdoch

Thats because I updated http://en.wikipedia.org/w/index.php?title=Favicon intead of the ICO one. Oops.

@davidmurdoch

Ok, NOW it is fixed. I hope the wiki nazi's don't revert it.

@dustinwhittle dustinwhittle pushed a commit that referenced this issue Apr 18, 2011
@paulirish paulirish 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
37b5fec
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment