Commit ebe329cc authored by speedprogs_de's avatar speedprogs_de

added no-cache header to file transfer, use local path for t3x unpacking

git-svn-id: https://svn.typo3.org/TYPO3v4/Extensions/terfe/branches/ter_fe2@45821 735d13b6-9817-0410-8766-e36946ffe9aa
parent 05f158b4
......@@ -102,6 +102,11 @@
return array();
}
// Get local filename if on same server
if (self::isLocalUrl($filename)) {
$filename = self::getLocalUrlPath($filename);
}
// Get file content
$contents = t3lib_div::getURL($filename);
if (empty($contents)) {
......@@ -183,6 +188,8 @@
}
// Set headers
header('Cache-Control: no-cache, must-revalidate');
header('Expires: Sat, 10 Jan 1970 00:00:00 GMT');
header('Content-Disposition: attachment; filename=' . (string) $visibleFilename);
header('Content-type: x-application/octet-stream');
header('Content-Transfer-Encoding: binary');
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment