2

I want to change my website favicon with the new icon image but I am unable to change it. It is still showing the previous one.

Previously when I added favicon with a link tag, which was suggested from many online resources, it had worked for me. However now when I am trying to replace it with a different one, it is not changing. I followed a StackOverflow link How do I force a favicon refresh? but still, my problem remains as it is.

That Link tag in following format:

<link rel="icon" type="image/png" href="/somewhere/myicon.png" />
Sunny
  • 577
  • 6
  • 20
  • 1
    Assuming the path to the new favicon is correct, then It's most likely been cached by the browser. Clear the cache to see the change – Rory McCrossan Feb 21 '20 at 11:22
  • 1
    you could try also hard refresh your browser: Ctrl + Shift + R – kasia Feb 21 '20 at 11:25
  • 1
    Does this answer your question? [How do I force a favicon refresh?](https://stackoverflow.com/questions/2208933/how-do-i-force-a-favicon-refresh) – strwoc Feb 21 '20 at 11:37

1 Answers1

4

Favicon is notorious for not refreshing, you can force your browser to redownload it by adding a querystring to your href path like so:

<link rel="icon" 
  type="image/png" 
  href="/somewhere/myicon.png?v=2" />

Also try clearing your browser cache.

strwoc
  • 511
  • 1
  • 9
  • 18