Hello all,

Quick question 'bout displaying dynamic images, or rather preventing them from being cached. The images in question are PNG graphs being generated from the stats table used to record my site's incoming links, visits, etc. I'm saving them to disk and displaying them using an image tag, idea being that then I won't need to re-generate previous months, only the current monthly stats will be changing. My problem is that I can't seem to find a way to prevent Nutscrape 4 from caching the images. I've tried the header control sample from php.net:

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("Pragma: no-cache");

which works great for IE and Mozilla (and NS 6?), but it fails for Netscape. Anyone have a solution they can offer? Thanx!!

Cheers,

Geoff A. Virgo

    Write a Reply...