Question

My site is http://belhimplast.by/en/ I made a favicon for it. In the head I have:

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

I can see the favicon.ico using the URL http://belhimplast.by/favicon.ico

But any browser doesn't show it. Help, please.

Was it helpful?

Solution 2

I see it used as icon when I browse to your page.

If you have visited your page before (duh!) it's likely because the browsers remember that there wasn't any icon there before, and don't update it right away. Browsers remember the icons for different sites, so that they don't have to request it every time that the site name is shown (for example in the bookmarks or the history).

Also, it's not guaranteed that every user sees the favicon, some browsers simply doesn't display some icons sometimes, for no apparent reason.

OTHER TIPS

Browser will load from cached data. Try updating your call to force an update via. new file-name.

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

I had the same problem. This is my favicon tag:

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

Don't forget close it.

I cleaned browser cache, but it didn't fixed a problem.

I saw my favicon just after Chrome and Firefox restart. In my opinion, it's a strange hard browser caching

Takeaway from the Rest of the Similar Posts

It is Important to Close ALL the Windows for the Browser You Are Testing against and Start It Fresh to See the Change Happen. (Doesn't Work on Edge)

Aside Notes

I have stumbled upon this issue myself. After researching other answers, there are many suggestions to fix it.

Some people can't rid of the old icon: How to clear the icon cache of Chromium browser

Others wanted to force refresh: How do I force a favicon refresh

Before doing anything, check your website in the browserling. If the favicon displayed there, you don't need to do anything further. At that moment, your browser decided to go crazy!

CTRL+F5 can help in some cases as it will force-reload all elements on the page. Closing and opening a tab doesn't always help.

I had the same problem :

the favicon exists (you can access it by its url), but doesn't show up, wether I am in local (with WAMP) or on a real webserver.

I had the following code :

<link rel="icon" sizes="192x192" href="https://example.com/public/images/favicon/favicon.png" type="image/png">

The problem was that I had made some echo and var_dump of PHP variables before the <!DOCTYPE html> was displayed.

Once I had removed all the echo and var_dump, the favicon immediately worked on both local and web server.

Po Rith's line of code worked for me. I added to the php page involved, escaping the quotes to accommodate the php, and it worked great.

echo "</head>"

became

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

Then used Ctrl+F5 to bypass the cache and load image fresh...worked right away.

Thanks, DougieC

I experienced this as well. The quickest way for me usually is to paste the required link onto a different browser.

For example, if you are using Safari, run the link on Google Chrome. It works for me every time, without having to do the extra steps mentioned by others.

try to use only rel="icon" in your rel... no rel="shortcut icon"

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top