From 7f5e9580d073889b06d27f98ac45539df385d84d Mon Sep 17 00:00:00 2001 From: =?utf8?q?Johannes=20Ke=C3=9Fler?= Date: Fri, 18 Nov 2022 12:37:04 +0100 Subject: [PATCH] set no cache headers --- webroot/index.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/webroot/index.php b/webroot/index.php index 18682a6..e8aa27e 100644 --- a/webroot/index.php +++ b/webroot/index.php @@ -93,6 +93,9 @@ require_once 'view/'.$_view.'/'.$_view.'.php'; # header information header('Content-type: text/html; charset=UTF-8'); +header("Cache-Control: no-store, no-cache, must-revalidate, max-age=0"); +header("Cache-Control: post-check=0, pre-check=0", false); +header("Pragma: no-cache"); if(isset($TemplateData['refresh']) && !empty($TemplateData['refresh'])) { header('Location: '.PATH_WEBROOT.$TemplateData['refresh']); exit(); -- 2.39.5