Xerobit
Frontend & Design

Favicon Not Updating? What Chrome Caches, Tested

Why a favicon will not update: Chrome 156 and Edge 156 request logs for no-cache, ETag, max-age and no-store headers, what a reload or clear cache really does, and the fix.

MA Mian Ali Khalid Updated Nov 2, 2026 7 min read
Free tool
Favicon Generator
Generate favicon package from any image or emoji. Multiple sizes (16, 32, 48, 180, 192, 512), favicon.ico, SVG, site.webmanifest and an HTML snippet.
Open tool →
On this page ⌄
  1. What was tested
  2. Results: when does the browser request the favicon again?
  3. What actually works: change the URL
  4. Cache headers: what to set
  5. Clearing the favicon cache in your own browser
  6. What was not tested
  7. FAQ
  8. Tested

If you changed your favicon and the tab still shows the old one, the cause is almost never your Cache-Control header. A small server was put in front of Chrome 156 and Edge 156 and the favicon requests it received were counted for common headers and common user actions. The pattern is clear: after the first fetch, browsers rarely ask for the file again. Changing the URL is the one fix that worked in every case. If you still need to produce the files, start with the Favicon Generator.

What was tested

A Node server returned a 16x16 solid-colour favicon with four header sets, and logged every request for it. The test page linked it with <link rel="icon">. Each header set got a fresh browser profile and the same sequence of actions. The results were identical for a PNG at /fav.png and for an image served at /favicon.ico in Chrome 156.0.8078.48, and identical to the /fav.png run in Microsoft Edge 156.0.4314.58 (both headless on Windows 11).

The four header sets:

  • none: no Cache-Control, no ETag, no Last-Modified
  • ETag only: ETag, answers 304 to If-None-Match
  • max-age 1y: Cache-Control: public, max-age=31536000
  • no-store: Cache-Control: no-store

Results: when does the browser request the favicon again?

"Request" means the server saw a hit for the favicon after the action.

actionnoneETag onlymax-age 1yno-store
first page loadrequestrequestrequestrequest
reload (F5)requestconditional request (304)no requestrequest
navigate to another URL on the same siteno requestno requestno requestno request
open the site in a new tabno requestno requestno requestno request
file changed on the server, normal navigationno requestno requestno requestno request
close and restart the browser, same profile, file changedno requestno requestno requestno request
hard reload (ignore cache)requestfull requestrequestrequest
change the href to ?v=2requestrequestrequestrequest

Three things stand out:

  1. Even no-store did not make the browser refetch on normal navigation. The favicon appears to be kept by the browser apart from the normal HTTP cache (the behaviour was observed, not the storage), so header tuning cannot force a fresh fetch for returning visitors. Not tested: how many days Chrome keeps one before re-checking.
  2. A reload only helps if your headers allow it. With a one-year max-age, F5 did not refetch; a hard reload did.
  3. The cache survived a browser restart, and a changed file was not picked up.

What actually works: change the URL

Any new URL is fetched immediately, in all four header sets:

<link rel="icon" href="/favicon.ico?v=2" sizes="48x48">
<link rel="icon" href="/favicon.svg?v=2" type="image/svg+xml">
<link rel="apple-touch-icon" href="/apple-touch-icon.png?v=2">

A renamed file (favicon.2.ico, a content hash in the name) behaves the same as a query string, because to the browser it is a different URL. The query string is simpler: the server ignores it and serves the same file. Not tested: apple-touch-icon caching. The third line is the same technique applied by analogy, not an observed result.

Automatic version from the file hash

So you never forget to bump it, derive the version from the file contents. This runs as written on Node 25; on this site's favicon.ico it produced 50462840:

import { createHash } from 'node:crypto';
import { readFileSync } from 'node:fs';

const hash = (file) =>
  createHash('md5').update(readFileSync(file)).digest('hex').slice(0, 8);

const v = hash('public/favicon.ico');
const html = '<link rel="icon" href="/favicon.ico" sizes="48x48">';
console.log(html.replace(/href="\/favicon\.ico"/g, `href="/favicon.ico?v=${v}"`));
// <link rel="icon" href="/favicon.ico?v=50462840" sizes="48x48">

Use the same function in whatever renders your <head>: a Vite transformIndexHtml hook, an Astro layout, or a Next.js layout. The hash changes only when the file does, so unchanged favicons keep their cached copy.

Cache headers: what to set

Given the results above, headers matter much less than people think for the tab icon. A reasonable policy:

{
  "headers": [
    {
      "source": "/favicon.ico",
      "headers": [
        { "key": "Cache-Control", "value": "public, max-age=86400, stale-while-revalidate=604800" }
      ]
    }
  ]
}

That is a vercel.json entry (valid JSON, parsed; not deployed). One day of freshness, one week of stale reuse. Do not use no-store hoping to force refreshes, since it did not. If you use a hashed filename, a year plus immutable is safe because the URL changes with the content.

Clearing the favicon cache in your own browser

For your own machine, in Chrome 156 over the DevTools protocol:

actionfavicon refetched on next navigation?
Network.clearBrowserCache onlyyes
Storage.clearDataForOrigin (everything) onlyno
bothyes
reload (F5)depends on headers, see table
hard reloadyes

So "Clear browsing data, Cached images and files" is the one that worked, and "Clear site data" in DevTools Application did not, even though many guides tell you to use it. The protocol equivalents were tested, not the menu buttons in the Chrome UI, so treat the mapping to the buttons as likely rather than proven.

During development, swapping the href on the live link works without any clearing:

const l = document.querySelector("link[rel~='icon']");
l.href = '/favicon.ico?t=' + Date.now();

Measured: this triggered a new request for the new URL. Setting the same href again, or removing the link and re-adding it with the same URL, did not.

What was not tested

  • Firefox and Safari. Not tested, so no claims about their cache behaviour or duration. Safari is widely reported to keep tab and touch icons stubbornly, but there are no measurements.
  • How long Chrome keeps a favicon before re-checking on its own.
  • Google Search results. The favicon in search results comes from Googlebot, not from your visitors' browsers, so none of this applies. Google's published requirements are a square image whose size is a multiple of 48px (48x48, 96x96 and so on), at a stable URL, and the update can take days to weeks. That is from their documentation, not something that was tested.

FAQ

Why is my favicon not updating?

The browser fetched it once and stores it separately from the normal HTTP cache. In tests, normal navigation, a new tab and even a browser restart did not refetch it, regardless of Cache-Control. Change the URL with ?v=2 or a new filename.

How do I clear the favicon cache in Chrome?

Clearing "Cached images and files" refetched the favicon in testing; clearing site data alone did not. Reloading with Ctrl+Shift+R also refetched it. For visitors you cannot clear anything, so version the URL.

Does Cache-Control: no-store fix a favicon that will not update?

No. With no-store, only a reload or hard reload fetched it again. Normal navigation, new tabs and restarts did not.

Does a hard refresh update the favicon?

In Chrome 156, yes: Page.reload with the cache ignored fetched it in every header setup. A plain reload only did for header sets that allow revalidation (none, ETag and no-store, but not a one-year max-age).

Tested

2026-11-02. Chrome 156.0.8078.48 and Microsoft Edge 156.0.4314.58, driven by playwright-core on Windows 11, headless, a fresh profile per header set, local Node server counting requests. A 16x16 PNG served at /fav.png (Chrome and Edge) and at /favicon.ico (Chrome). Not tested: Firefox, Safari, mobile browsers, incognito, durations longer than a few seconds. More on formats: SVG favicons.

Keep reading

Related tools

Written by Mian Ali Khalid. More guides in Frontend & Design.