Skip to content
This repository

IE has trouble viewing favicon.ico #219

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

3 participants

Jonathan Neal Paul Irish David Murdoch
Jonathan Neal
Collaborator

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

Deleted user

The content you are editing has changed. Reload the page and try again.

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?

Sending Request…

Attach images by dragging & dropping or selecting them. Octocat-spinner-32 Uploading your images… Unfortunately, we don't support that file type. Try again with a PNG, GIF, or JPG. Yowza, that's a big file. Try again with an image file smaller than 10MB. This browser doesn't support image attachments. We recommend updating to the latest Internet Explorer, Google Chrome, or Firefox. Something went really wrong, and we can't process that image. Try again.

Deleted user

The content you are editing has changed. Reload the page and try again.

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.

Sending Request…

Attach images by dragging & dropping or selecting them. Octocat-spinner-32 Uploading your images… Unfortunately, we don't support that file type. Try again with a PNG, GIF, or JPG. Yowza, that's a big file. Try again with an image file smaller than 10MB. This browser doesn't support image attachments. We recommend updating to the latest Internet Explorer, Google Chrome, or Firefox. Something went really wrong, and we can't process that image. Try again.

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

David Murdoch

I've updated the Wikipedia article.

Paul Irish
Owner

They were reverted. :)

David Murdoch

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

David Murdoch

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

Dustin Whittle dustinwhittle referenced this issue from a commit December 15, 2010
Paul Irish 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
Taka Kojima gigafied referenced this issue from a commit February 08, 2012
Commit has since been removed from the repository and is no longer available.
Cătălin Mariș alrra referenced this issue from a commit November 28, 2012
Commit has since been removed from the repository and is no longer available.
Cătălin Mariș alrra referenced this issue from a commit July 26, 2013
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.