Skip to content
Snippets Groups Projects
Commit 6d88439a authored by Andreas Gohr's avatar Andreas Gohr
Browse files

return time in GMT for conditional requests #1081

darcs-hash:20070224122418-7ad00-df595caf9d861bc6b4e5bf2d478df890b6f5bf7a.gz
parent 16fa9657
No related branches found
No related tags found
No related merge requests found
......@@ -439,7 +439,7 @@ function isVisiblePage($id){
function http_conditionalRequest($timestamp){
// A PHP implementation of conditional get, see
// http://fishbowl.pastiche.org/archives/001132.html
$last_modified = substr(date('r', $timestamp), 0, -5).'GMT';
$last_modified = substr(gmdate('r', $timestamp), 0, -5).'GMT';
$etag = '"'.md5($last_modified).'"';
// Send the headers
header("Last-Modified: $last_modified");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment