aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2018-11-07 09:36:30 +0100
committerMario <mario@mariovavti.com>2018-11-07 09:36:30 +0100
commitfc1d8c0138f834ffa1c9044525c32757059c0f23 (patch)
tree8797bc87b8d545e1273a257006840fd45112ea81
parent6c6dca05e7c3b8a1dc2eaed1544f5218a9cde9be (diff)
parenta5a77d1e7c3ae190e01848c0cc4567fcdb3edfb1 (diff)
downloadvolse-hubzilla-fc1d8c0138f834ffa1c9044525c32757059c0f23.tar.gz
volse-hubzilla-fc1d8c0138f834ffa1c9044525c32757059c0f23.tar.bz2
volse-hubzilla-fc1d8c0138f834ffa1c9044525c32757059c0f23.zip
Merge branch 'revert-40d9277e' into 'dev'
Revert "remove 'Expiries' HTTP header" See merge request hubzilla/core!1372
-rw-r--r--Zotlabs/Module/Photo.php3
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);
}