X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=src%2Fsquirrelmail_rpc.php;h=8a776fb6b4a2967a4667502bf65eb9b8222423f7;hb=c3d4275eae0b920a3d25a2d3ec57117693c37fc5;hp=7f5f779f636ca24038da1994090a80ce848fa818;hpb=d4e46166df04792c6b939356ea5dfda8e47bba7b;p=squirrelmail.git diff --git a/src/squirrelmail_rpc.php b/src/squirrelmail_rpc.php index 7f5f779f..8a776fb6 100644 --- a/src/squirrelmail_rpc.php +++ b/src/squirrelmail_rpc.php @@ -13,7 +13,7 @@ * changed by creating a different RPC template set and pointing to it * with $rpc_templateset in the main SquirrelMail configuration file. * - * @copyright © 1999-2009 The SquirrelMail Project Team + * @copyright 1999-2016 The SquirrelMail Project Team * @license http://opensource.org/licenses/gpl-license.php GNU Public License * @version $Id$ * @package squirrelmail @@ -100,12 +100,10 @@ if (!sqGetGlobalVar('rpc_action', $rpc_action, SQ_FORM)) { */ $oTemplate->header('Content-Type: text/xml'); $oTemplate->header('Content-Type: application/xml'); // required by IE -//FIXME: which anti-cache headers do we want to use? -$oTemplate->header('Cache-Control: no-cache'); -// $oTemplate->header("Expires: Sat, 1 Jan 2000 00:00:00 GMT"); -// $oTemplate->header("Last-Modified: " . gmdate("D, d M Y H:i:s") . "GMT"); -// $oTemplate->header("Cache-Control: no-cache, must-revalidate"); -// $oTemplate->header("Pragma: no-cache"); +$oTemplate->header('Pragma: no-cache'); +$oTemplate->header('Cache-Control: no-cache, no-store, must-revalidate, max-age=0'); +$oTemplate->header('Expires: Sat, 1 Jan 2000 00:00:00 GMT'); +//TODO: is this needed? $oTemplate->header('Last-Modified: ' . gmdate('D, d M Y H:i:s') . 'GMT');