diff --git a/lib/public/AppFramework/Http/Response.php b/lib/public/AppFramework/Http/Response.php index 15318f30bbde3..ee2559e8f4102 100644 --- a/lib/public/AppFramework/Http/Response.php +++ b/lib/public/AppFramework/Http/Response.php @@ -107,7 +107,7 @@ public function __construct() { */ public function cacheFor(int $cacheSeconds) { if($cacheSeconds > 0) { - $this->addHeader('Cache-Control', 'max-age=' . $cacheSeconds . ', must-revalidate'); + $this->addHeader('Cache-Control', 'max-age=' . $cacheSeconds . ', s-maxage=' . $cacheSeconds . ', must-revalidate'); // Old scool prama caching $this->addHeader('Pragma', 'public');