How to force the update of favicon.ico?

1

I have a problem with favicon.ico , it appears wrong.

Some time ago, I made a site that used a favicon.ico . After that, I've done about 3 sites and the problem occurs in all of them.

Although I put the URL of favicon.ico to a figure, it shows in the browser the favicon of the previous site.

Looking at Ctr+U (Source Code), and clicking on the link that calls the favicon, the figure that opens is the correct one. But in the browser it always appears to be wrong. And this image no longer exists in the site folder.

I have already cleared the navigation cache, after that I have already formatted the computer and continue this error.

Can it be Chrome stuff saving this in "cloud" similar to what it does with favorites? If so, how to fix?

    
asked by anonymous 06.10.2016 / 00:11

2 answers

3

To force update of favicon , use a query string in the name of the your file. For example:

<link rel="icon" href="http://www.seusite.com/favicon.ico?v=2" />

This forces browsers to download the new version of favicon.

  

I've also had this same problem in projects testing on the same domain, and adding the query string ?v=2 (or any random version number) at the end of the URL in <link /> , the update to the new version is successful! Even Stack Overflow itself uses this method.

    
07.10.2016 / 04:58
-4

If your internet provider is local, the guy should use cache and you only access some of your current online files, other files (like the icon for example), you access the version stored in his cache. >

If this is the case, talk to your ISP and ask them to disable the cache that goes to your machine.

    
07.10.2016 / 00:00