Log in

View Full Version : How do I clear cache of page JPG files?



Strangeplant
06-12-2006, 06:17 PM
Hi,

I just found that I have a tiny annoying problem with image caching on a page:

http://earth.engr.ccny.cuny.edu/noaa/wc/Lidar/chainedmenu1.html

that uses two large external javascript files. They are used for DD's Chained Menu Script found at
http://www.dynamicdrive.com/dynamicindex1/chainedmenu/chainedmenu.html

I modified it a little, added another DD script, and it all works just great together, however, even when I add the line

<META http-equiv="cache-control" content="no-cache">

all browsers appear to cache the referenced .jpg images anyway. The result is that when I update the menu tree in config0.js, the most recent image does not appear because the seed (starting) image has the same name as before the update.

How can I prevent this image caching? Thanks.

Twey
06-12-2006, 07:18 PM
Adjust your server settings.

Strangeplant
06-13-2006, 12:10 PM
I read, searched, and then read some more. Please tell me what you mean. The images are in the user's computer cache.

Twey
06-13-2006, 12:57 PM
To disable caching for a resource, the resource should be sent with the HTTP header "Cache-Control: no-cache". How one would accomplish this depends on one's webserver.