Safari favicon not updating

This answer has not been given yet so I thought I'd post it.I looked all around the web, and didn't find a good answer for testing favicons in local development.It seems pretty silly to always cache them given they are normally only 16x16.

safari favicon not updating-52safari favicon not updating-5safari favicon not updating-17

I wrote this answer under the impression that this is what it took to refresh favicons in Google Chrome.

I have a Grails application running locally using its own tomcat and I have just changed the favicon for a new one. The old favicon shows up or I get no favicon at all, but not my new one. I have numerous bookmarks in my browser which have the wrong icons and they never seem to get refreshed.

I don't think this is a Grails issue per se, more an issue wth favicons. How do I force the server/browser to stop cacheing them?

In current version of chrome (on OSX) if you do the following you will get an instant favicon refresh: This way the Favicon will always refresh when it has been changed.

As pointed out in the comments you can also use the last modified date instead of the MD5-Hash to achieve the same thing and save a bit on server performance: Well, overhead is overhead, but yes, not too big.

Leave a Reply