diff --git a/snappymail/v/0.0.0/app/libraries/RainLoop/Service.php b/snappymail/v/0.0.0/app/libraries/RainLoop/Service.php index 62c5d3500..a71766f79 100644 --- a/snappymail/v/0.0.0/app/libraries/RainLoop/Service.php +++ b/snappymail/v/0.0.0/app/libraries/RainLoop/Service.php @@ -137,10 +137,12 @@ abstract class Service } if ($bIndex) { + // https://github.com/the-djmaze/snappymail/issues/1024 + $oHttp->ServerNoCache(); + if (!$bAdmin) { $login = $oConfig->Get('labs', 'custom_login_link', ''); if ($login && !$oActions->getAccountFromToken(false)) { - $oHttp->ServerNoCache(); \MailSo\Base\Http::Location($login); return true; } @@ -150,7 +152,6 @@ abstract class Service \header('Content-Type: text/html; charset=utf-8'); if (!\is_dir(APP_DATA_FOLDER_PATH) || !\is_writable(APP_DATA_FOLDER_PATH)) { - $oHttp->ServerNoCache(); echo $oServiceActions->ErrorTemplates( 'Permission denied!', 'SnappyMail can not access the data folder "'.APP_DATA_FOLDER_PATH.'"'