Explicitly disable caching for left_main and right_main pages (#2983134)
authorjangliss <jangliss@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Sun, 20 Jun 2010 14:37:16 +0000 (14:37 +0000)
committerjangliss <jangliss@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Sun, 20 Jun 2010 14:37:16 +0000 (14:37 +0000)
git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@13940 7612ce4b-ef26-0410-bec9-ea0150e637f0

doc/ChangeLog
src/left_main.php
src/right_main.php

index 358c3153d1462b238424da1bf941aeeb62d3f00f..ff9a78c6ed96118bc8f1ee3bcc06fe416048e6d9 100644 (file)
@@ -337,6 +337,7 @@ Version 1.5.2 - SVN
     leakage when Firefox does DNS prefetching for URLs contained in emails.
   - Added the ability to configure Google Mail (Gmail) as the mail server
     behind SquirrelMail.
     leakage when Firefox does DNS prefetching for URLs contained in emails.
   - Added the ability to configure Google Mail (Gmail) as the mail server
     behind SquirrelMail.
+  - Explicitly disable caching for left_main and right_main pages (#2983134).
 
 Version 1.5.1 (branched on 2006-02-12)
 --------------------------------------
 
 Version 1.5.1 (branched on 2006-02-12)
 --------------------------------------
index 80d71720ca8379c8b18ce4073972e4183dcb9eb9..24f32253c2e55dad2d73e1e58bb1e6450411f81f 100644 (file)
 /** This is the left_main page */
 define('PAGE_NAME', 'left_main');
 
 /** This is the left_main page */
 define('PAGE_NAME', 'left_main');
 
+/* Disable browser caching */
+header('Cache-Control: no-cache, no-store, must-revalidate');
+header('Pragma: no-cache');
+header('Expires: ' . gmdate(DATE_RFC1123, time()-1));
+
 /**
  * Include the SquirrelMail initialization file.
  */
 /**
  * Include the SquirrelMail initialization file.
  */
@@ -45,9 +50,7 @@ $imapConnection = sqimap_login($username, false, $imapServerAddress, $imapPort,
  */
 if (!empty($left_refresh) &&
     !stristr($left_refresh, 'none')){
  */
 if (!empty($left_refresh) &&
     !stristr($left_refresh, 'none')){
-    $xtra =  "\n<meta http-equiv=\"Expires\" content=\"Thu, 01 Dec 1994 16:00:00 GMT\" />\n" .
-             "<meta http-equiv=\"Pragma\" content=\"no-cache\" />\n".
-             "<meta http-equiv=\"REFRESH\" content=\"$left_refresh;URL=left_main.php\" />\n";
+    $xtra =  "\n<meta http-equiv=\"REFRESH\" content=\"$left_refresh;URL=left_main.php\" />\n";
 } else {
     $xtra = '';
 }
 } else {
     $xtra = '';
 }
index eb7247829a8d9744b42964a0912262bbb007955f..ef2797da4c20444e47852c86ac43245e438485a8 100644 (file)
@@ -17,6 +17,10 @@ define('PAGE_NAME', 'right_main');
 
 //xdebug_start_profiling("/var/spool/xdebug/right_main.txt");
 
 
 //xdebug_start_profiling("/var/spool/xdebug/right_main.txt");
 
+/* Disable browser caching */
+header('Cache-Control: no-cache, no-store, must-revalidate');
+header('Pragma: no-cache');
+header('Expires: ' . gmdate(DATE_RFC1123, time()-1));
 
 /**
  * Include the SquirrelMail initialization file.
 
 /**
  * Include the SquirrelMail initialization file.