I cannot update the favicon in react boilerplate.
I replaced the file in images/app/favicon.ico with my own file, but I'm still seeing the old icon show up.
I cleared my browser cache, ran npm run build:clean
, and npm run build
.
Can't get my new favicon to render. Please advise how to update the favicon.
The problem is that the browser is holding onto the old image in the cache and not updating it.
To solve this problem update the favicon url to %PUBLIC_URL%/favicon.ico?v=2
The ?v=2
at the end will force the browser to refresh the favicon.
See How do I force a favicon refresh? for more details.