470,631 Members | 1,572 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 470,631 developers. It's quick & easy.

reload image directly

I am uploading a new image to my database.
The upload works ok and the new image is stored ok on server.
The problem is can I force a reload on cache to display the new image.
If I reload the page it works fine but if i dont then the old image is
displayed.
is there a way to force a reload of image.
Thanks
Feb 26 '07 #1
1 4290
chris wrote:
I am uploading a new image to my database.
The upload works ok and the new image is stored ok on server.
The problem is can I force a reload on cache to display the new image.
If I reload the page it works fine but if i dont then the old image is
displayed.
is there a way to force a reload of image.
Thanks
Chris,

You can "recommend" a reload with the no-cache header:

<META HTTP-EQUIV="CACHE-CONTROL" CONTENT="NO-CACHE">

But you can't "force" a reload. Browsers (and cashing servers between
your site and the client) are free to ignore it.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
js*******@attglobal.net
==================
Feb 26 '07 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

4 posts views Thread by Martin | last post: by
4 posts views Thread by STEPHEN GOODE | last post: by
66 posts views Thread by Ellinghaus, Lance | last post: by
19 posts views Thread by Darren | last post: by
7 posts views Thread by lgbjr | last post: by
3 posts views Thread by michael | last post: by
5 posts views Thread by atulvp | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.