Date: 02/28/01
- Next message: Daniel Naber: "[phplib-dev] cross site scripting attack"
- Previous message: max: "[phplib-dev] cvs commit"
- Next in thread: Spruce Weber: "Re: [phplib-dev] possible solution for "data missing" error?"
- Maybe reply: Spruce Weber: "Re: [phplib-dev] possible solution for "data missing" error?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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: phplib-dev-unsubscribe <email protected> For additional commands, e-mail: phplib-dev-help <email protected>
- Next message: Daniel Naber: "[phplib-dev] cross site scripting attack"
- Previous message: max: "[phplib-dev] cvs commit"
- Next in thread: Spruce Weber: "Re: [phplib-dev] possible solution for "data missing" error?"
- Maybe reply: Spruce Weber: "Re: [phplib-dev] possible solution for "data missing" error?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

