Refresh an image in cache??

admin

Administrator
Staff member
This may be an HTML, Javascript or HTTP question. I'm not sure which.<br />
<br />
I'm allowing users to post an image to my site. I set the uploaded image name to 'temp.ext' in a Perl script (where 'ext' can only be .gif or .jpg). After upload, the user is sent a new page with the uploaded image. The image is then deleted on the server. All this works as expected and the image is correctly stored in the user's cache.<br />
<br />
Here's the problem. If the user decides he/she wants to upload different image (uploaded name is still temp.ext), I need to refresh the cache but cache, of couse, already has temp.ext and does not refesh. Is there a way to force the refresh? If not, any suggestions on how I might accomplish this.<!--content-->Thanks Dave..<br />
<br />
Great suggestion!! I ended up creating and returning<br />
<br />
imagename.ext?randomstring<br />
<br />
in the Perl script (which changes the randomstring with each new image) and it seems to work correctly in both Explorer and Netscape.<!--content-->
 
Back
Top