You replaced the favicon files, refreshed the site, and the old icon is still in the tab. This happens often enough that people assume the generator failed, or that their HTML is wrong, when the new package is already on the server. Browsers, operating systems and even Google Search cache favicons aggressively. A hard refresh of the page is not always enough.
This is a how-to for checking that the new icon is really being served, and for forcing stubborn clients to pick it up.
First confirm the files on the server are the new ones
Before you blame the browser, open the icon URLs directly.
- Visit
/favicon.ico, the PNG paths in your snippet, and the Apple touch icon URL. You should see the new mark, not the old one. - If you use a web app manifest, open the manifest file and then each icon it lists. A manifest that still points at last year's filenames will keep serving them.
- Check the response is not a 404, a redirect to your homepage HTML, or a stale file from a CDN. View the response headers if you can: a long
Cache-Controlor a CDN hit on an old object explains a lot. - If you renamed files (a good idea when cache is sticky), confirm every tag and the manifest were updated to the new names. One leftover
shortcut iconlink to the old.icois enough to keep the previous mark in some browsers.
If the direct URL still shows the old icon, the problem is the deploy or the CDN, not the tab cache. Purge the CDN path, upload again, and only then look at browsers.
Test in a clean browser context
The tab you develop in is the worst place to judge a favicon. It has almost certainly cached the previous file.
- Open the site in a private window, or in a different browser you do not usually use for that project.
- Try a device that has never opened the site: a phone that does not have it on the home screen, or a colleague's machine.
- If you need to retest in your usual browser, clear cached images for the site, or append a temporary query string to the icon URL in the HTML (
favicon.ico?v=2) and reload. Query strings are a blunt instrument, but they distinguish "the HTML is fine" from "this browser will not let go".
Look at the tab, the bookmarks bar if you bookmark it, and — if relevant — the home-screen icon. Those three can update on different schedules. iOS in particular may keep an Apple touch icon long after the tab icon has changed.
Search and "add to home screen" have their own clocks
Even a correct, freshly cached tab icon can sit next to an old mark in other places:
- Google's results favicon is fetched on Google's schedule, not yours. You cannot force it by refreshing the search results. Search Console and a correctly linked icon help, but an update can still take a while. Do not keep redeploying in a loop because google.com still shows the previous 16-pixel file.
- Pinned tabs, PWAs and home-screen icons often ignore a normal reload. Removing the PWA or the home-screen shortcut and adding it again is sometimes the only way to see the new maskable or Apple icon.
- Multiple sizes mean a browser can use a cached 32-pixel file even after you updated the 16-pixel one, or the reverse. Check each size you ship.
If one surface is new and another is old, that is usually cache, not a half-written package.
A short verification checklist
- The icon URLs, opened directly, show the new artwork and the right format (ICO, PNG, or SVG as intended).
- The HTML snippet and manifest all point at those URLs — no leftover paths, no mixed old and new filenames unless you did that on purpose.
- A private window or a fresh device shows the new tab icon.
- The Apple touch icon and the maskable/PWA icon look correct in their own previews, including padding and background, not only in the desktop tab.
- You have a plan for the slow surfaces: CDN cache purge, a versioned filename for the next change, and patience for search.
If steps 1 or 2 fail, fix the files and the markup. If they pass and only your everyday browser is stale, force a cache bypass or wait. Replacing the package again without changing filenames will not teach a stubborn cache new tricks.
favicon.now builds ICO, PNG, Apple and maskable icons plus a manifest and HTML snippet from an image, SVG, text or emoji. After you install that package, the check that matters is a direct request to each icon URL, then a look in a browser that has never seen the old file.
Top comments (0)