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).
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.
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.
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.
If your favicon is formatted as . gif , . jpg , or . png , the correct MIME type is “ image/ico ,” as represented by type="image/ico" .
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.)
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).
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With