Image does not refresh

O

Oded

Hi all,
I have an ASP page which allows image uploading. When uploading is finished
an image tag is refreshed to display the new image. It works well for the
first upload, but does not refresh in other uploads, unless a substantial
amount of time passes without viewing the image. I guess it has somthing to
do with caching, but don't know how to solve it.
If anyone has any ideas, it will be a big help.....
Thanks
 
G

Gérard Leclercq

Maybe this can help:

Response.Buffer = True
Response.Expires = -1000
Response.CacheControl = "no-cache"
Response.AddHeader "Pragma", "no-cache"
 

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,769
Messages
2,569,579
Members
45,053
Latest member
BrodieSola

Latest Threads

Top