diff options
author | Steve Clay <steve@mrclay.org> | 2012-10-29 20:59:21 -0400 |
---|---|---|
committer | Steve Clay <steve@mrclay.org> | 2012-11-15 01:42:15 -0500 |
commit | d857c68fd91b1bcf586a30d86108b1898c2bb2d3 (patch) | |
tree | 033f19e11177ee00451fe26cb3a1ebf44b53bbc3 /engine/lib | |
parent | dca0df8297b578c85676b1ff868a2182981bee25 (diff) | |
download | elgg-d857c68fd91b1bcf586a30d86108b1898c2bb2d3.tar.gz elgg-d857c68fd91b1bcf586a30d86108b1898c2bb2d3.tar.bz2 |
Fixes #4895: Output valid ETag and Expires headers
Diffstat (limited to 'engine/lib')
-rw-r--r-- | engine/lib/elgglib.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/engine/lib/elgglib.php b/engine/lib/elgglib.php index 974f38aad..dd3cba25d 100644 --- a/engine/lib/elgglib.php +++ b/engine/lib/elgglib.php @@ -1885,7 +1885,7 @@ function elgg_cacheable_view_page_handler($page, $type) { header("Content-type: $content_type"); // @todo should js be cached when simple cache turned off - //header('Expires: ' . date('r', time() + 864000)); + //header('Expires: ' . gmdate('D, d M Y H:i:s \G\M\T', strtotime("+10 days")), true); //header("Pragma: public"); //header("Cache-Control: public"); //header("Content-Length: " . strlen($return)); |