X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=src%2Fsquirrelmail_rpc.php;h=419ac01d93ba7eb335489afcdc36a227d39b39b1;hb=97eea19dd325ccf33df16522fb1a0410dbca831f;hp=787b7d28bb61a5bcd7915fa47cc6575cf4660c36;hpb=1977ab5587905d225c6288141b82f7a6e3d29d02;p=squirrelmail.git diff --git a/src/squirrelmail_rpc.php b/src/squirrelmail_rpc.php index 787b7d28..419ac01d 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-2010 The SquirrelMail Project Team + * @copyright 1999-2012 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');