Dynamic Images - Possible Cache problem?

stustarz

Junior Contributor
Joined
Jan 10, 2003
Messages
246
Location
Earth
Hi all

I have two aspx pages: img_request.aspx and img_retrieve.aspx. img_request contains an image box with the URL set to img_retrieve.aspx. In the code behind this page, it pulls an image from file, loads this into a memorystream and then outputs as contenttype "image/jpeg". This is working fine, the image is being displayed. BUT....

I call img_retrieve.aspx using a querystring parameter called imageid e.g. img_retrieve.aspx?imageid=1, this will work and my image is shown, if i change this to imageid=2, imageid 1 is shown - yet better still, if i look at the properties of the image it displays "img_retrieve.aspx?imageid=2"??

I have set both pages to have the following meta tags:

Code:
	<META HTTP-EQUIV="Pragma" CONTENT="no-cache">
	<META HTTP-EQUIV="Expires" CONTENT="-1">

but this seems to have no effect, the image seems to be being held in a cache somewhere - has anyone dealt with this before, and have a solution to ensuring that the correct image is being displayed.
 
Back
Top