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

有帮助吗?

解决方案

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:

其他提示

You can clear your favicon by forcing your browser to re-cache it using a cache buster:

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

Every time you change the image, change the version (?v=) to an increment (3, 4, ...).

Here is a related discussion on this issue: How do I force a favicon refresh

So far i can see it  works ;)

**So far i can see it works ;)

** enter image description here

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

Like bjb568 told you, clean the cache.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top