Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

like image 913
Kip Avatar asked Sep 18 '09 14:09

Kip


People also ask

Why is my favicon not showing up in Chrome?

When you add a favicon to your site, it may not show up since your browser has 'saved' your site as one without a favicon. You need to clear the cache in your browser or use a different browser.

What is http * * favicon ICO?

Modern browsers will show an icon to the left of the URL. This known as the 'favicon. ico' and is typically fetched from website.com/favicon.ico. Your browser will automatically request it when browsing to different sites. If your browser receives a valid favicon.

What size should a favicon be?

Favicon images are small in size, only 16 pixels in height by 16 pixels in width, so there is not much space for complex designs. Still, a good favicon that is clean, simple and easily identifiable can provide a good visual indicator for visitors navigating to your site through their tabs or bookmarks.

What is favicon type?

If your favicon is formatted as . gif , . jpg , or . png , the correct MIME type is “ image/ico ,” as represented by type="image/ico" .


2 Answers

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

like image 84
TRiG Avatar answered Sep 20 '22 17:09

TRiG


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

like image 34
Adam Wright Avatar answered Sep 24 '22 17:09

Adam Wright