summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorthomascube <thomas@roundcube.net>2007-01-07 18:14:08 +0000
committerthomascube <thomas@roundcube.net>2007-01-07 18:14:08 +0000
commit97c8d3377cf4f07dceabe7c19f4698e8e359f368 (patch)
tree77e22b5adf3261415cd076ed18871f4b0e2e64e9
parent6ad43859920c01800eb02e64d4f6128ec072524f (diff)
Applied patch for preview caching (closes #1484186)
-rw-r--r--CHANGELOG5
-rw-r--r--program/steps/mail/show.inc7
2 files changed, 10 insertions, 2 deletions
diff --git a/CHANGELOG b/CHANGELOG
index 2c04a3bae..399162b69 100644
--- a/CHANGELOG
+++ b/CHANGELOG
@@ -1,6 +1,11 @@
CHANGELOG RoundCube Webmail
---------------------------
+2007/01/07 (thomasb)
+----------
+- Applied patch for preview caching (closes #1484186)
+- Added Thai localization files
+
2006/12/29 (thomasb)
----------
- Added error handling for attachment uploads
diff --git a/program/steps/mail/show.inc b/program/steps/mail/show.inc
index aa5b3733d..b1fa7cfb7 100644
--- a/program/steps/mail/show.inc
+++ b/program/steps/mail/show.inc
@@ -23,8 +23,11 @@ require_once('Mail/mimeDecode.php');
$PRINT_MODE = $_action=='print' ? TRUE : FALSE;
-// allow this request to be cached
-send_future_expire_header();
+// allow caching, unless remote images are present
+if ((bool)get_input_value('_safe', RCUBE_INPUT_GET))
+ send_nocacheing_headers();
+else
+ send_future_expire_header();
// similar code as in program/steps/mail/get.inc
if ($_GET['_uid'])