in reply to Preventing Web Client From Caching

A blank line is used to separate the header from the content in an HTTP response. Therefore simply move the blank return to the end of the header, instead of embedded in the Content-type print statment:
print "Content-type: image/gif\n"; print "Cache-control: no-cache\n"; print "Pragma: no-cache\n"; print "Expires: Mon, 06 May 1996 04:57:00 GMT\n"; print "\n"; # End Header
- Miller

Replies are listed 'Best First'.
Re^2: Preventing Web Client From Caching
by Anonymous Monk on Aug 04, 2007 at 04:09 UTC
    Thanks, this format works since I don't see the error message but my Firefox is still not updating the graph. Did I forget any other options?
      Just to make sure the obvious is covered, do you have a <meta http-equiv=refresh content=60> or similar tag in the <head> of the HTML document? Disabling caching may tell the browser to always reload the page when asked to, but you still need to ask it to reload before it will do so.