To refresh your site's favicon you can force browsers to download a new version using the link tag and a querystring on your filename.
https://addons.mozilla.org/en-US/firefox/addon/faviconreloader/? src=api If you are just interested in debugging it to make sure it has changed, you can just add a dummy entry to your /etc/hosts file and hit the new URL.
That favicon wouldnt be cached already and you can make sure you new one is working.
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?
You will have to delete your cache from your browser, close your browser and reopen it. I don't believe your favicons will get refreshed on your favorites until you revisit that page, and assuming that you had previously cleared your browsers cache.
Your web browser will not go out to the internet to check for a new favicon on its own... If you put an "Expires: " header on the response, client browsers will re-request the icon after that timestamp.If so we have provided easy to use instructions below.The browser you use could be missing important updates or you have a version that is no longer supported that can also affect using other websites.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.However, it turns out that this only works for the first five minutes or so, until the icon gets irretrievably lost in Chrome's history synchronization.