diff options
author | Max Kostikov <max@kostikov.co> | 2018-11-07 08:41:32 +0100 |
---|---|---|
committer | Max Kostikov <max@kostikov.co> | 2018-11-07 08:41:32 +0100 |
commit | a5a77d1e7c3ae190e01848c0cc4567fcdb3edfb1 (patch) | |
tree | 8797bc87b8d545e1273a257006840fd45112ea81 | |
parent | 6c6dca05e7c3b8a1dc2eaed1544f5218a9cde9be (diff) | |
download | volse-hubzilla-a5a77d1e7c3ae190e01848c0cc4567fcdb3edfb1.tar.gz volse-hubzilla-a5a77d1e7c3ae190e01848c0cc4567fcdb3edfb1.tar.bz2 volse-hubzilla-a5a77d1e7c3ae190e01848c0cc4567fcdb3edfb1.zip |
Revert "remove 'Expiries' HTTP header"
This reverts commit 40d9277ef38ef1200db59cd2f8c6b9e2a80bc332
-rw-r--r-- | Zotlabs/Module/Photo.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Zotlabs/Module/Photo.php b/Zotlabs/Module/Photo.php index 0f47ee103..d76fca278 100644 --- a/Zotlabs/Module/Photo.php +++ b/Zotlabs/Module/Photo.php @@ -246,7 +246,8 @@ class Photo extends \Zotlabs\Web\Controller { // leave it alone. $cache = get_config('system','photo_cache_time', 86400); // 1 day by default - + + header("Expires: " . gmdate("D, d M Y H:i:s", time() + $cache) . " GMT"); header("Cache-Control: max-age=" . $cache); } |