Merge branch 'revert-40d9277e' into 'dev'
Revert "remove 'Expiries' HTTP header" See merge request hubzilla/core!1372
This commit is contained in:
commit
fc1d8c0138
@ -247,6 +247,7 @@ class Photo extends \Zotlabs\Web\Controller {
|
|||||||
|
|
||||||
$cache = get_config('system','photo_cache_time', 86400); // 1 day by default
|
$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);
|
header("Cache-Control: max-age=" . $cache);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user