Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Images Caching

Status
Not open for further replies.

qsac

Programmer
Jan 22, 2002
242
US
I cant believe i cant get this. How do I keep an image from caching?

This does not work:
<meta http-equiv="Pragma" content="no-cache">
<meta http-equiv="Cache-Control" content="no-store,max-age=-1">

Any Help?
 
Hi mate,

The best way is to add a random query string to it, this fools the browsers 99% of the time as they think it is a new image.

Code:
image.gif?12345

Hope this helps

Wullie

Fresh Look - Quality Coldfusion Hosting

The pessimist complains about the wind. The optimist expects it to change. The leader adjusts the sails. - John Maxwell
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top