Forcing image update

B

Big Homer

I have a page that allows the user to manipulate various data fields, which
in turn cause the server to modify an image that is displayed on the page.
Right now, the server just overwrites the old image with the new one, but
this new image doesn't actually get displayed until I click the "Refresh"
button in the browser. I assume what's happening is that the image is
getting cached in the brower and thus it is using the cached image instead
of the new image. Is there a simple way to stop this from happening? I
tried adding a "no-cache" meta tag to the page, but that has no effect. I'm
sure there is a really simple way to accomplish what I want, but so far I
can't seem to figure it out.

-Jess
 
V

Vidar Petursson

Hi

Add a querystring to the image... datetime for example

--
Best Regards
Vidar Petursson
==============================
Microsoft Internet Client & Controls MVP
==============================
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,756
Messages
2,569,533
Members
45,007
Latest member
OrderFitnessKetoCapsules

Latest Threads

Top