o-----------ooO--(- Important Message -)--Ooo------------o
| |
| SAVE BANDWITH, SPACE, TIME & MONEY, REPLY WITH PRUDENCE.|
| |
o----=[ Penguin @ My - Linux ([EMAIL PROTECTED]) ]=----o
On Fri, 4 Feb 2000, Woo Wai Kee wrote:
> the scenario:
> ------------
[snip]
>
> what i've tried (but not satisfy with the result) is:
> ---------------
[snip]
> Header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
> Header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT");
> Header("Cache-Control: no-cache, must-revalidate");
> Header("Progma: no-cache");
These headers only work for the HTML content of the page. GIFs are still
cached regardless of what headers you put into the page as far as I know.
The only way you can avoid from having your gifs cached as well is
to write a php wrapper function that outputs the gif so you could use an
<IMG> tag like this:
<IMG src="/wrapper.php3?img=something.gif&dummy=<? echo uniqid(""); ?>">
This way, you can avoid from having the gif cached since uniqid("")
outputs a different result every time the page is loaded.
-
Disclaimer : http://users.my-linux.org/disclaimer.html