diff --git a/core/Controller/SvgController.php b/core/Controller/SvgController.php index 26cead8913..b8e59d57d9 100644 --- a/core/Controller/SvgController.php +++ b/core/Controller/SvgController.php @@ -123,7 +123,7 @@ class SvgController extends Controller { // Set cache control $ttl = 31536000; - $response->addHeader('Cache-Control', 'max-age=' . $ttl . ', immutable'); + $response->cacheFor($ttl); $response->addHeader('Content-Disposition', 'inline; filename="' . $fileName . '.svg"'); $expires = new \DateTime(); $expires->setTimestamp($this->timeFactory->getTime());