Re: Non cachable php for use as an <img src>
| From: | Hugh Bothwell | Date: | Sun, 19 May 2002 14:45:10 +0000 |
| Subject: | Re: Non cachable php for use as an <img src> | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-98364@lists.php.net to get a copy of this message | ||
"Henry" <henry@teacake.f9.co.uk> wrote in message
news:20020519084240.32475.qmail@pb1.pair.com...
> Hello All,
>
> I want to return a gif from a php script. I want it to not be cachable
> "anywhere" not browsers, proxys etc. Actualy what I want to do is pass an
> existing .gif file as the output and do some database manipulation whilst
I
> do so.
Add a randomized cache-killer parameter, ie
<img src='counter.php?site=1&k={insert random number here}' />
Your script can ignore it, but the cache is
unable to guarantee it doesn't mean something
important, so it will force a reload.