|
|
 |
Re: FN-FORUM Caching image problem...grrrrrrr
date posted 31st August 2000 21:53
Hmmm... I know the following works with HTML, but I've never tried with
images. When you're outputting your image header, try doing this too....
header ("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); // Date in the past
header ("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT"); // always
modified
header ("Cache-Control: no-cache, must-revalidate"); // HTTP/1.1
header ("Pragma: no-cache"); //
HTTP/1.0
Hope this helps
Mark Williams
----- Original Message -----
From: Marc Weaver [EMAIL REMOVED]
To: [EMAIL REMOVED]
Sent: Thursday, August 31, 2000 9:09 PM
Subject: FN-FORUM Caching image problem...grrrrrrr
> Could anybody help solve this little problem...
>
> I have been developing a PHP script to enable members of a site to upload
> images via a web page. The script deletes the old photo and uploads the
new
> one but the image file is all ways called the same name ie..username.jpg
> This all works fine, however the problem is, when they have done this a
page
> appears showing them the pic they have just uploaded...now if they change
> their picture again the old image appears on this confirmation
page...until
> you refresh it that is..then the correct image is shown. So I was
wondering,
> is there a way of stopping the Browser caching this image?
>
> Many Thanks
>
>
>
> ============================================================
>
> * Free listing for freelancers
> * Free to advertise jobs
> * Free jobs distribution service
> * Free database of 1000 freelancers
>
> Freelancers and Freelance Jobs
> http://www.freelancers.net
>
> To post to the Forum:
> [EMAIL REMOVED]
>
> To unsubscribe please email:
> [EMAIL REMOVED]
>
> If you have difficulties unsubscribing please email:
> [EMAIL REMOVED]
>
> To subscribe to the digest for this list or for further information please
visit:
> http://www.freelancers.net/forum.html
>
|
 |
|