Re: Browser cache
| From: | Jennifer Downey | Date: | Tue, 23 Apr 2002 16:42:32 +0000 |
| Subject: | Re: Browser cache | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-94199@lists.php.net to get a copy of this message | ||
PLEASE TAKE THIS OUT OF MY THREAD.
I am trying to get an answer to my question. Not yours.
Thank you
Jennifer
"Stuart Dallas" <stuart@sharedserver.net> wrote in message
news:000d01c1eae5$96243450$de01420a@stuart...
> José León Serna <jose.leon@securitydata.es> wrote:
> > Hello:
> > How could I disable the browser cache?, I have a script that
> > generates an image and shows it via <IMG SRC="myimage">. The problem
> > is if I change the image, the browser doesn't reflect the changes
> > until I push refresh. I supose is sending a header, but which header?
>
> Headers aren't the best way since some browsers do a great job of ignoring
> them (or at least appearing to). The best way I've found to make sure the
> content is retrieved from the server is to add ?n to the URL replacing
> randomnumber with a random number (I usually use the return value from
> time()).
>
> HTH,
> Stuart
>
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.351 / Virus Database: 197 - Release Date: 4/19/2002