Source: Top Shelf It Solutions Blog

Top Shelf It Solutions Blog Forcing browsers to reload previously cached static resources: images, css and javascript files

If you want to make a change to website image, stylesheet, or javascript file and have all the browsers reload previously cached version of it, you can simply add a querystring parameter to the SRC attribute of the HTML tag:<link rel="stylesheet" href="http://www.topshelfitsolutions.com/css/style.css?v=2" /><script src="/js/javascriptfile.js?v=3.5"></script><img src="/img/imagefile.png?v=1" ... />The querystring parameter doesn't necessarily need to contain a key-value pair, you simply need to have some unique string after the question mark. If you want to force some asset to always get re-downloaded, you can simply generate a string based on a system timer in whatever scripting language fits your situation and append that string to the SRC attribute of your asset tag.

Read full article »
Est. Annual Revenue
$100K-5.0M
Est. Employees
25-100
CEO Avatar

CEO

Update CEO

CEO Approval Rating

- -/100