summaryrefslogtreecommitdiffstats
path: root/core/Controller/AvatarController.php
diff options
context:
space:
mode:
Diffstat (limited to 'core/Controller/AvatarController.php')
-rw-r--r--core/Controller/AvatarController.php8
1 files changed, 0 insertions, 8 deletions
diff --git a/core/Controller/AvatarController.php b/core/Controller/AvatarController.php
index 14709d65fed..11d81ab00b2 100644
--- a/core/Controller/AvatarController.php
+++ b/core/Controller/AvatarController.php
@@ -141,16 +141,8 @@ class AvatarController extends Controller {
return $resp;
}
- // Let cache this!
- $resp->addHeader('Pragma', 'public');
// Cache for 30 minutes
$resp->cacheFor(1800);
-
- $expires = new \DateTime();
- $expires->setTimestamp($this->timeFactory->getTime());
- $expires->add(new \DateInterval('PT30M'));
- $resp->addHeader('Expires', $expires->format(\DateTime::RFC1123));
-
return $resp;
}