yeoman / generator-webapp

A gulp.js generator for modern webapps
3.77k stars 708 forks source link

Favicon does not update #679

Closed akshayvinchurkar1 closed 7 years ago

akshayvinchurkar1 commented 7 years ago

I don't know why but my favicon does not update on a site I change that with a new one with the same name but it shows the old one the default one. any suggestions.

neilhem commented 7 years ago

This is the problem of browsers which cache favicons, try to pass params of filehash, so when it will change you will get a new one.

<link rel="icon" type="image/x-icon" href="/favicon.ico?hash=8799864">
silvenon commented 7 years ago

Yeah, this is an unfortunate browser annoyance. Any unique GET param will work, people usually go with ?v=1 then increase that number as they change favicons.