Search code examples
htmlfavicon

Why does adding a random GET parameter make favicon show?


I attempted adding a favicon to a site im working on, but for some reason the brower wasn't even requesting the favicon as it should, since i was getting no response from my server. I then found this identical question that solved my problem - What are the reasons that a browser would not request favicon.ico?

My one questions is - How in the sweet hell dose adding this query v=1.0 fix the issue?


Solution

  • It doesn't matter if it was ?v=1.0 or ?v=1000.

    When you add a GET parameter that the browser has never seen before, it forces the cache to clear. The browser probably cached the site before you added the favicon.