From e0d3983c5b46a5855174a847602c5efe4da47a44 Mon Sep 17 00:00:00 2001 From: Varun Patil Date: Thu, 9 Feb 2023 00:57:37 -0800 Subject: [PATCH] page: disable cache --- lib/Controller/PageController.php | 1 + lib/Controller/PublicController.php | 1 + 2 files changed, 2 insertions(+) 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; }