Revert "remove 'Expiries' HTTP header"

This reverts commit 40d9277ef3
This commit is contained in:
Max Kostikov 2018-11-07 08:41:32 +01:00
parent 6c6dca05e7
commit a5a77d1e7c

View File

@ -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);
}