• Want to receive the latest contracting news and advice straight to your inbox? Sign up to the ContractorUK newsletter here. Every sign up will also be entered into a draw to WIN £100 Amazon vouchers!

Browser caching

Presumably you want the browser to cache images that haven't changed, but to refresh when they have.

Assuming you've got some code behind your website, you could try having a setting somewhere with a value that you change when you do a release, that appends to your image paths as a querystring - e.g

<img src="./images/mypic.jpg?20120703" />

The change of qs should trigger the cache to refresh.

Disclaimer - IANNF.
 
Cheers. After checking and finding same problem on another PC I renamed the image directory and changed all refs in Inforapide but seen summit like you recommend so that might be another good way next time.
 
There's two useful caching check tools here:

Cacheability Query

http://redbot.org/


PS Change image path sorted IE but did not sort Chrome, however, either the query string thing or html to php/htm works for page links so ta for those brill suggestions also!
 
Last edited: 22:32

Advertisers

Back
Top