From 0dbac3218130dfe418d6c7dc162f819c746bec2d Mon Sep 17 00:00:00 2001 From: thomascube Date: Thu, 4 Sep 2008 18:20:27 +0000 Subject: Enable export of contacts as vCard + DRY --- program/include/rcube_shared.inc | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'program/include/rcube_shared.inc') diff --git a/program/include/rcube_shared.inc b/program/include/rcube_shared.inc index 0dd661ec5..5008251ad 100644 --- a/program/include/rcube_shared.inc +++ b/program/include/rcube_shared.inc @@ -37,8 +37,14 @@ function send_nocacheing_headers() header("Expires: ".gmdate("D, d M Y H:i:s")." GMT"); header("Last-Modified: ".gmdate("D, d M Y H:i:s")." GMT"); - header("Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0"); + header("Cache-Control: private, no-store, no-cache, must-revalidate, post-check=0, pre-check=0"); header("Pragma: no-cache"); + + // We need to set the following headers to make downloads work using IE in HTTPS mode. + if (isset($_SERVER['HTTPS'])) { + header('Pragma: '); + header('Cache-Control: '); + } } -- cgit v1.2.3