aboutsummaryrefslogtreecommitdiff
path: root/pages/avatar/view.php
diff options
context:
space:
mode:
authorSteve Clay <steve@mrclay.org>2012-10-29 20:59:21 -0400
committerSteve Clay <steve@mrclay.org>2012-11-15 01:42:15 -0500
commitd857c68fd91b1bcf586a30d86108b1898c2bb2d3 (patch)
tree033f19e11177ee00451fe26cb3a1ebf44b53bbc3 /pages/avatar/view.php
parentdca0df8297b578c85676b1ff868a2182981bee25 (diff)
downloadelgg-d857c68fd91b1bcf586a30d86108b1898c2bb2d3.tar.gz
elgg-d857c68fd91b1bcf586a30d86108b1898c2bb2d3.tar.bz2
Fixes #4895: Output valid ETag and Expires headers
Diffstat (limited to 'pages/avatar/view.php')
-rw-r--r--pages/avatar/view.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/pages/avatar/view.php b/pages/avatar/view.php
index bd6c95821..10d81fef1 100644
--- a/pages/avatar/view.php
+++ b/pages/avatar/view.php
@@ -46,7 +46,7 @@ if (!$success) {
}
header("Content-type: image/jpeg", true);
-header('Expires: ' . date('r', strtotime("+6 months")), true);
+header('Expires: ' . gmdate('D, d M Y H:i:s \G\M\T', strtotime("+6 months")), true);
header("Pragma: public", true);
header("Cache-Control: public", true);
header("Content-Length: " . strlen($contents));