]> 91.132.146.200 Git - scientia.git/commitdiff
set no cache headers
authorJohannes Keßler <johannes.kessler@bechtle.com>
Fri, 18 Nov 2022 11:37:04 +0000 (12:37 +0100)
committerJohannes Keßler <johannes.kessler@bechtle.com>
Fri, 18 Nov 2022 11:37:04 +0000 (12:37 +0100)
webroot/index.php

index 18682a63a7409afb1d7c1253261eeeff751932ff..e8aa27eeac17b8d061340ce6e104d20ea78aac5a 100644 (file)
@@ -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();