Vscode-live-server: Doesn't update favicon in Google Chrome

Created on 11 Feb 2018  路  2Comments  路  Source: ritwickdey/vscode-live-server

Strangely, Live Server caches an old version of the favicon my website is using, even though it's not declared in the HTML at all. I have to explicitly declare a new icon in order to get it changed. It gets even more frustrating when I comment out that declaration and the favicon is still there, but only in Google Chrome. As expected, in Firefox it doesn't show.

I'm using Windows 10 x64, VS Code 1.20.0, Live Server 3.2.0.

Feel free to ask for more information, would be glad to assist.

closed

Most helpful comment

Okk!! it's not about live server! This is about the browser cache!

just try the trick (it may works):
<link rel="icon" href="favicon.ico?v=2" type="image/x-icon"/>

?v=ANYTHING will remove the cache.

All 2 comments

Okk!! it's not about live server! This is about the browser cache!

just try the trick (it may works):
<link rel="icon" href="favicon.ico?v=2" type="image/x-icon"/>

?v=ANYTHING will remove the cache.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Er-rchydy picture Er-rchydy  路  3Comments

maboumra picture maboumra  路  3Comments

yzhang-gh picture yzhang-gh  路  5Comments

Zerotask picture Zerotask  路  4Comments

kmdrGroch picture kmdrGroch  路  5Comments