Commit 952e1384 authored by mattl's avatar mattl

added very basic caching headers

parent 93fabd71
......@@ -50,4 +50,10 @@ if (isset($_COOKIE['session_id'])) {
$err = 1;
}
}
} else {
$seconds_to_cache = 3600;
$ts = gmdate("D, d M Y H:i:s", time() + $seconds_to_cache) . " GMT";
header("Expires: $ts");
header("Pragma: cache");
header("Cache-Control: max-age=$seconds_to_cache");
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment