Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

IE has trouble viewing favicon.ico #219

Closed
jonathantneal opened this Issue · 8 comments

3 participants

@jonathantneal

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

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

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

@davidmurdoch

I've updated the Wikipedia article.

@paulirish
Owner

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 referenced this issue from a commit
@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
@gigafied gigafied referenced this issue from a commit
Commit has since been removed from the repository and is no longer available.
@alrra alrra referenced this issue from a commit
Commit has since been removed from the repository and is no longer available.
@alrra alrra referenced this issue from a commit
Commit has since been removed from the repository and is no longer available.
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.