Search code examples
phphtmlfavicon

No way to show up favicon.ico


i have this in the head of the document:

<link rel="shortcut icon" type="image/x-icon" href="/favicon.ico" />    

I read all I could about it here, but that didn't help and that's why I'm asking again. I'm positive that it wasn't a typo - PHP file_exists finds the ico file fine, but none of the browsers show it... What could be the reason? This domain is new but after I checked the DNS records they are refreshed and are OK. I cleared local cache and deleted tmp files... You can see it live at http://mybestday.eu


Solution

  • Favicons are stored in a special cache. That cache lasts a long time (days to weeks) and can't be cleared by clearing the normal content cache. You could test favicons on a remote computer (like browserstack) or just wait 'till the cache expires.

    Or, see the next answers for (ugly) workarounds: