summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authormatthiasgrimm <matthiasgrimm@users.sourceforge.net>2005-06-06 17:44:20 +0200
committermatthiasgrimm <matthiasgrimm@users.sourceforge.net>2005-06-06 17:44:20 +0200
commitea19fb8733bc51d12149295c28b1ec59b3facd19 (patch)
tree8af61b84d6eaed1eca850481360dd24119305d8e /lib
parent871eff02dcf51063990aea2919b2dd290c360232 (diff)
downloadrpg-ea19fb8733bc51d12149295c28b1ec59b3facd19.tar.gz
rpg-ea19fb8733bc51d12149295c28b1ec59b3facd19.tar.bz2
cache control header
This patch adds a cache control header to fetch.php. Without this header media files can't be opened and viewed with third party programs directly from the IE browser window. For eg. Acrobat Reader will display an error message after clicking on a link to a PDF file. Firefox will work without it. darcs-hash:20050606154420-7ef76-2b46b0eb626488cec122a00cc32f86a28542b161.gz
Diffstat (limited to 'lib')
-rw-r--r--lib/exe/fetch.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/exe/fetch.php b/lib/exe/fetch.php
index da6089ede..91edbd1d4 100644
--- a/lib/exe/fetch.php
+++ b/lib/exe/fetch.php
@@ -73,6 +73,7 @@
header("Content-Type: $MIME");
header('Last-Modified: '.date('r',filemtime($FILE)));
header('Content-Length: '.filesize($FILE));
+ header('Cache-Control: must-revalidate, post-check=0, pre-check=0');
//application mime type is downloadable
if(substr($MIME,0,11) == 'application'){