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:
- Is dynamic favicon updating officially supported in Safari?
- 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!