A
Alex Greenberg
Hi,
I'm having a strange problem:
I have a product.aspx page where the admin can change product
properties, including the JPEG. The JPEG will always have the same
name: eg. 120.jpg and in the same location.
1) Admin visits page and browses to images/myimage.jpg
2) Application takes myimage.jpg and creates a modified copy in
myapp/img and calls it 120.jpg.
3) image path in database changes to myapp/img/120.jpg
3) Admin leaves page
4) Admin revisits page (in same session) and picks a different image,
which replaces the old one but retains the name 120.jpg.
5) Admin leaves and comes back one more time. OLD IMAGE IS STILL
DISPLAYED (from step 2). Even though image is changed on hard drive.
obviously, IE is caching the image and going back to it on subsequent
visits in same session. I tried using the No-Cache directive. I also
added a ?t=<random> to the page parameters. Neither of these worked.
Please help.
I'm having a strange problem:
I have a product.aspx page where the admin can change product
properties, including the JPEG. The JPEG will always have the same
name: eg. 120.jpg and in the same location.
1) Admin visits page and browses to images/myimage.jpg
2) Application takes myimage.jpg and creates a modified copy in
myapp/img and calls it 120.jpg.
3) image path in database changes to myapp/img/120.jpg
3) Admin leaves page
4) Admin revisits page (in same session) and picks a different image,
which replaces the old one but retains the name 120.jpg.
5) Admin leaves and comes back one more time. OLD IMAGE IS STILL
DISPLAYED (from step 2). Even though image is changed on hard drive.
obviously, IE is caching the image and going back to it on subsequent
visits in same session. I tried using the No-Cache directive. I also
added a ?t=<random> to the page parameters. Neither of these worked.
Please help.