Hi,

I wonder if this is a valid solution to the "Data missing" error that 
appears when $allowcache is set to "private" and the user presses his back 
button to go back to a page that was the result of a POST:

case "private":
$mod_gmt = gmdate("D, d M Y H:i:s", getlastmod()) . " GMT";
header("Last-Modified: " . $mod_gmt);
# dnaber, 2001-02-28, prevent "Data missing" error:
if( getenv("REQUEST_METHOD") == "GET" ) {
  header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
  header("Cache-Control: private");
  header("Cache-Control: max-age=" . $this->allowcache_expire * 60);
  header("Cache-Control: pre-check=" . $this->allowcache_expire * 60);
}
break;

My idea is that proxy caches should not cache POST queries by default. 
Does anybody know if that's really the case?

Regards
 Daniel

-- 
Daniel Naber, Paul-Gerhardt-Str. 2, 33332 Guetersloh, Germany
Tel. 05241-59371, Mobil 0170-4819674

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to