Skip to content
Snippets Groups Projects
Commit ea19fb87 authored by matthiasgrimm's avatar matthiasgrimm
Browse files

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
parent 871eff02
No related branches found
No related tags found
No related merge requests found
......@@ -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'){
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment