diff --git a/header.inc.php.template b/header.inc.php.template index 430758cb76..37a8f79613 100644 --- a/header.inc.php.template +++ b/header.inc.php.template @@ -83,8 +83,11 @@ /* If you want phpGroupWare to be cached by proxy servers, uncomment the following */ /* This is NOT recommended, but phpGroupWare should still work fine. */ - header('Cache-Control: no-cache, must-revalidate'); // HTTP/1.1 - header('Pragma: no-cache'); // HTTP/1.0 + if (!isset($phpgw_info['flags']['nocachecontrol']) || !$phpgw_info['flags']['nocachecontrol'] == True) + { + header('Cache-Control: no-cache, must-revalidate'); // HTTP/1.1 + header('Pragma: no-cache'); // HTTP/1.0 + } /**************************************************************************\ * Do not edit these lines * diff --git a/setup/manageheader.php b/setup/manageheader.php index 1372a3f4eb..57527b9fcc 100644 --- a/setup/manageheader.php +++ b/setup/manageheader.php @@ -12,6 +12,7 @@ /* $Id$ */ $phpgw_info['flags'] = array( + 'nocachecontrol' => True, 'noheader' => True, 'nonavbar' => True, 'currentapp' => 'home', @@ -211,6 +212,19 @@ echo '
did not found any valid DB support !
try to configure your php to support one of the above mentioned dbs or install phpgroupware by hand