diff --git a/lib/Controller/PageController.php b/lib/Controller/PageController.php index 365d4296..04520842 100644 --- a/lib/Controller/PageController.php +++ b/lib/Controller/PageController.php @@ -94,6 +94,7 @@ class PageController extends Controller $response = new TemplateResponse($this->appName, 'main'); $response->setContentSecurityPolicy(self::getCSP()); + $response->cacheFor(0); return $response; } diff --git a/lib/Controller/PublicController.php b/lib/Controller/PublicController.php index d39382f1..0ca79aad 100644 --- a/lib/Controller/PublicController.php +++ b/lib/Controller/PublicController.php @@ -110,6 +110,7 @@ class PublicController extends AuthPublicShareController $response->setHeaderTitle($share->getNode()->getName()); $response->setFooterVisible(false); // wth is that anyway? $response->setContentSecurityPolicy(PageController::getCSP()); + $response->cacheFor(0); return $response; }