Fix cache-control syntax for photos

This commit is contained in:
Max Kostikov 2019-10-15 13:49:46 +02:00
parent 3561fd7c43
commit 3c762b8809

View File

@ -277,8 +277,7 @@ class Photo extends \Zotlabs\Web\Controller {
// in the event that infrastructure caching is present.
$smaxage = intval($maxage/12);
header("Cache-Control: s-maxage=' .$smaxage. '; max-age=" . $maxage . $cachecontrol);
header("Cache-Control: s-maxage=" . $smaxage . ", max-age=" . $maxage . $cachecontrol);
}