views:

600

answers:

3

If I configure Apache to serve /favicon.ico as MIME type image/vnd.microsoft.icon, instead of image/x-icon, will it break on any browsers? Wikipedia's favicon article indicates that image/vnd.microsoft.icon is the "correct" mime type, but that doesn't help if it means some users won't see it.

I need to support IE6+, as well as modern browsers (FF/Chrome/Opera/Safari).

+2  A: 

Google serve /favicon.ico as image/x-icon, and I'd guess they know what they're talking about (or at least, what's compatible).

Adam Wright
+2  A: 

If you are able to set up a website serving the favicon you could use something like http://browsershots.org to test compatibility with a wide range of browsers. It takes a screenshot of the whole browser window, including the displayed favicon.

Andre Miller
good idea, i'll try that
Kip
There were a few browsers (I think IE6 included) that didn't like `image/vnd.microsoft.icon`, but everything was OK with `image/x-icon`, so I'm going to stick with that for a while. Thanks for the suggestion. Sorry I forgot to come back and accept this answer... :-/
Kip
+1  A: 

Off the top of my head, image/vnd.microsoft.icon will work only if the image actually is a real ICO file, while image/x-icon is less fussy, and will also work for bitmaps and GIF images. (Non-ICO files with the .ico file extension are, I believe, quite common.)

TRiG
Yeah, ms (among others) has been known to suggest that procedure -- even in their article about how to add a favicon to your site...
SamB