Kip
Kip

Reputation: 109413

If I serve /favicon.ico as image/vnd.microsoft.icon, instead of image/x-icon, will it break on any browsers?

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

Upvotes: 10

Views: 16001

Answers (2)

TRiG
TRiG

Reputation: 10643

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

Upvotes: 5

Adam Wright
Adam Wright

Reputation: 49376

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

Upvotes: 4

Related Questions