How to Force a Refresh of favicon.icoSee HTML: Tips and Tricks for similar articles.
I ran into this problem while writing our Creating, Styling, and Validating Web Forms course. I was showing how browsers make an automatic request for "/favicon.ico" when first visiting a new site. However, once they've received the icon or determined it doesn't exist, they don't request it again on subsequent visits. That created a headache for me when trying to show how to deliver the icon. Unfortunately, it's not easy to force the browser to refresh the favicon.ico, but it's doable.
Follow these steps to for Google Chrome to make a new request for favicon.ico:
- Navigate to the folder that contains the Favicons file.
- On Mac, that is /Users/YOUR_USERNAME/Library/Application Support/Google/Chrome/Default
- On Windows, that is C:\Users\YOUR_USERNAME\AppData\Local\Google\Chrome\User Data\Default
- Delete the Favicons file.
- Shutdown Google Chrome.
- Reopen Google Chrome and open Google Chrome Developer's Network tab.
- Navigate to the site for which you were trying to get the new favicon.ico file. In the Network tab, you should see that the favicon.ico file was downloaded:
- How to Ask Good Technical Questions
- How to Properly Nest Lists in HTML
- How to Install and Use Visual Studio Code for Class
- How to Open HTML Files in Your Browser from Visual Studio Code
- How to Create a Simple HTML Document
- How to Work with Empty and Container Tags in HTML
- How to Mark Up a Citation in HTML
- How to Create an HTML Table
- How to Force a Refresh of favicon.ico (this article)