This commit is contained in:
Alexander M. Turek
2002-10-03 17:29:39 +00:00
parent e9d249201c
commit e24b4abce0
3 changed files with 12 additions and 4 deletions

View File

@@ -173,17 +173,18 @@ else {
: 'application/octet-stream';
}
$now = gmdate('D, d M Y H:i:s') . ' GMT';
// Send headers
header('Content-Type: ' . $mime_type);
header('Expires: ' . $now);
// lem9 & loic1: IE need specific headers
if (PMA_USR_BROWSER_AGENT == 'IE') {
header('Content-Disposition: inline; filename="' . $filename . '.' . $ext . '"');
header('Expires: 0');
header('Cache-Control: must-revalidate, post-check=0, pre-check=0');
header('Pragma: public');
} else {
header('Content-Disposition: attachment; filename="' . $filename . '.' . $ext . '"');
header('Expires: 0');
header('Pragma: no-cache');
}
} // end download