Skip to content

Instantly share code, notes, and snippets.

@cobbman
Created March 13, 2013 22:44
Show Gist options
  • Save cobbman/5157112 to your computer and use it in GitHub Desktop.
Save cobbman/5157112 to your computer and use it in GitHub Desktop.
How to get your browser to update cache with images and files. Especially helpful for favicons!
Start with this:
<link rel="shortcut icon" href="/ico/favicon.ico">
And add this to the end of the image href: ?v=2 like this...
<link rel="shortcut icon" href="/ico/favicon.ico?v=2">
This will tell your browser that the old version is out of date and to use the new version
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment