Update Photo.php

This commit is contained in:
Max Kostikov 2018-11-05 21:26:10 +01:00
parent 2dd124d09e
commit f7ce374a28

View File

@ -240,7 +240,7 @@ class Photo extends \Zotlabs\Web\Controller {
// This has performance considerations but we highly recommend you
// leave it alone.
$cache = get_config('system','photo_cache_time', 3600);
$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);