IE has trouble viewing favicon.ico #219

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

Comments

Projects
None yet
3 participants
@jonathantneal
Member

jonathantneal commented Nov 25, 2010

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" />

This comment has been minimized.

Show comment Hide comment
@ghost

ghost 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 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?

@jonathantneal

This comment has been minimized.

Show comment Hide comment

This comment has been minimized.

Show comment Hide comment
@ghost

ghost 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.

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

This comment has been minimized.

Show comment Hide comment
@paulirish

paulirish Dec 15, 2010

Owner

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

Owner

paulirish commented Dec 15, 2010

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

This comment has been minimized.

Show comment Hide comment
@davidmurdoch

davidmurdoch Dec 15, 2010

Contributor

I've updated the Wikipedia article.

Contributor

davidmurdoch commented Dec 15, 2010

I've updated the Wikipedia article.

@paulirish

This comment has been minimized.

Show comment Hide comment
@paulirish

paulirish Dec 15, 2010

Owner

They were reverted. :)

Owner

paulirish commented Dec 15, 2010

They were reverted. :)

@davidmurdoch

This comment has been minimized.

Show comment Hide comment
@davidmurdoch

davidmurdoch Dec 15, 2010

Contributor

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

Contributor

davidmurdoch commented Dec 15, 2010

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

@davidmurdoch

This comment has been minimized.

Show comment Hide comment
@davidmurdoch

davidmurdoch Dec 15, 2010

Contributor

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

Contributor

davidmurdoch commented Dec 15, 2010

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

dustinwhittle pushed a commit that referenced this issue Apr 18, 2011

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

This issue was closed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment