summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--core/Controller/SvgController.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/Controller/SvgController.php b/core/Controller/SvgController.php
index 26cead8913e..b8e59d57d9f 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());