page: disable cache

pull/396/head
Varun Patil 2023-02-09 00:57:37 -08:00
parent bb47f5b6dc
commit e0d3983c5b
2 changed files with 2 additions and 0 deletions

View File

@ -94,6 +94,7 @@ class PageController extends Controller
$response = new TemplateResponse($this->appName, 'main'); $response = new TemplateResponse($this->appName, 'main');
$response->setContentSecurityPolicy(self::getCSP()); $response->setContentSecurityPolicy(self::getCSP());
$response->cacheFor(0);
return $response; return $response;
} }

View File

@ -110,6 +110,7 @@ class PublicController extends AuthPublicShareController
$response->setHeaderTitle($share->getNode()->getName()); $response->setHeaderTitle($share->getNode()->getName());
$response->setFooterVisible(false); // wth is that anyway? $response->setFooterVisible(false); // wth is that anyway?
$response->setContentSecurityPolicy(PageController::getCSP()); $response->setContentSecurityPolicy(PageController::getCSP());
$response->cacheFor(0);
return $response; return $response;
} }