4 ms·
Yeah. I always did it this way, didn't realise until fairly recently you could use <link/> tags. Does anyone know of any other user agents that don't hit /favi
by JonnieCache 16y ago
Yeah. I always did it this way, didn't realise until fairly recently you could use <link/> tags.
Does anyone know of any other user agents that don't hit /favicon.ico regardless? Feed readers for example?
- mathias 16y agoThe article mentions SeaMonkey, currently the only browser that doesn’t fetch /favicon.ico by default. But yeah — some web apps rely on /favicon.ico as well. All the more reason to just place it there :)
- benwerd 16y agoDownside: if you include it as an HTML link you can use a PNG file, whereas the version in the root has to be an icon file. Chances are, that's the only time you'll ever use the icon format, and many image apps don't support it. It's a weird throwback to another era, like the web equivalent of a vestigial tail.
- bouncingsoul 16y agoI haven't done complete browser testing, but I know you can use a PNG and simply change the extension to .ico and it will still work in some browsers. Edit: I tested on a domain that previously didn't have a favicon. Putting a PNG named favicon.ico at the root without an explicit <link> worked in Chrome 9, Firefox 3.6, and Safari 5. It didn't work in IE 9.
- strager 16y agoMaybe it'll work if you send the appropriate `Content-type`?
- true_religion 16y agoCan't you just issue a 301 redirect from /favicon.ico to /favicon.png?