|  | Posted by dave ches on 11/23/05 11:46 
HiThanks:  yes I've tried those headers.  It still delivers a cached
 version of the gd image unless the browser is idle for a minute or 2.
 
 I'm going to contact my hosting provider and see if it's anything in the
 server config.
 
 What I don't understand is how it can go to the cached version of the
 php script that generates the gd image even when the php script is
 called via  a URL with a unique querystring.  (and it is:  each time you
 refresh and look at the source it is a different querystring.
 
 regards
 dave
 
 
 
 AD7six wrote:
 > Try this in your import image script.
 >
 > //**** Lots of headers to ensure the image is not cached.
 > // Date in the past
 > header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
 > // always modified
 > header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT");
 > // HTTP/1.1
 > header("Cache-Control: no-store, no-cache, must-revalidate");
 > header("Cache-Control: post-check=0, pre-check=0", false);
 > // HTTP/1.0
 > header("Pragma: no-cache");
 > //**** End of crappy headers.
 >
 > It's not my own work, and I don't remember where I got it from but it
 > worked for me for a similar application.
 >
 > Regards,
 >
 > AD7six
 >
 [Back to original message] |