Safari not updating favicons dynamically


Hello,

I’m experiencing an issue with Safari related to favicon updates and would like to understand whether this is expected behavior or a known limitation. I’m trying to change the favicon dynamically.


I’ve tried:

  • changing the favicon file name and path
  • removing /favicon.ico
  • updating the favicon URL with cache-busting query strings
  • dynamically replacing the <link rel="icon"> element via JavaScript


This works as expected in Chrome and Firefox, but Safari continues to display an old favicon, even after the file is

changed or removed on the server.


I’ve noticed that:

  • Safari seems to reuse a previously cached favicon for the entire domain
  • the favicon may persist even when /favicon.ico no longer exists


This suggests that Safari may be caching favicons very aggressively or storing them separately from normal HTTP cache.

My questions are:

  1. Is dynamic favicon updating officially supported in Safari?
  2. Is there a recommended or supported way to force Safari to re-fetch or update a favicon?

Any clarification from the Safari team or developers who’ve faced this would be very helpful.


Thank you!

Posted on Jan 23, 2026 4:31 AM

Reply

Similar questions

4 replies

Jan 25, 2026 6:14 PM in response to khrystyna274

I think that you may be having two separate issues here. I have not been active in web development in several years but the .ico format was considered obsolete many years ago. You will have much better results with all modern browsers by doing some research and moving to .png and .svg versions and using the appropriate <link> tags in the head of your pages, or, just naming your touch icon files correctly and placing them directly in the site's server root. Do some searching for "favicon touch icons 2026" and you will find some good reference material. I found the following for example: https://evilmartians.com/chronicles/how-to-favicon-in-2021-six-files-that-fit-most-needs


To answer you question, you as the developer or website owner, cannot in any way "push" new favicons to a visitor. That's not how the web works. The only way that favicons/touch icons can be updated is if the browser initiates a request for your page again. You cannot force that from your end. It's possible that some browsers occasionally fetch them on purpose to keep them updated. However, in general new icons are only going to reach the browser if the user requests the page again. I use several browsers on several platforms and have always had to click each and every one of my favorites on the bookmark toolbar to fetch new icons as necessary.



Feb 16, 2026 5:02 AM in response to khrystyna274

This is not a case of the user needing to fetch the site again or use png or svg. I’ve updated the favicon on my site using png. It updates on every other browser, but on safari it still shows the old one! If I go to the favicon link directly I can see the proper image, but safari, and more importantly the Home Screen PWA, will not update the favicon!


deleting the PWA and adding it again also does not work. It still shows the old icon that does not exist anywhere on the web anymore!


I even tried deleting safari history for the site, still no icon update!!

Feb 16, 2026 5:38 AM in response to khrystyna274

In my personal experience over the years Safari favicons have been unstable. For example, recently I had a favicon for a news site suddenly change to the favicon for my bank. The only solution was to clear all website data (which clears all favicons as well). I my opinion there is no solution that sticks.


I don't know if Safari has some restriction on the size or shape of favicons or if there is a W3C standard that some websites don’t conform to.

Safari not updating favicons dynamically

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.