diff options
author | Morris Jobke <hey@morrisjobke.de> | 2018-01-22 15:35:35 +0100 |
---|---|---|
committer | Roeland Jago Douma <roeland@famdouma.nl> | 2018-02-19 09:40:25 +0100 |
commit | 70b1f510f2eab2276beab2e0b47d08f04c63c966 (patch) | |
tree | 9bea5016d93081f747238baed4bc93d40a8e5eed /apps/files_versions | |
parent | b3ca73dc277f7c5b00f2175d5c42919f044631c0 (diff) | |
download | nextcloud-server-70b1f510f2eab2276beab2e0b47d08f04c63c966.tar.gz nextcloud-server-70b1f510f2eab2276beab2e0b47d08f04c63c966.zip |
Use normal header() calls instead of private method calls
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
Diffstat (limited to 'apps/files_versions')
-rw-r--r-- | apps/files_versions/download.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/apps/files_versions/download.php b/apps/files_versions/download.php index e5c70dd2bc5..833077fbcce 100644 --- a/apps/files_versions/download.php +++ b/apps/files_versions/download.php @@ -49,7 +49,9 @@ $ftype = \OC::$server->getMimeTypeDetector()->getSecureMimeType($view->getMimeTy header('Content-Type:'.$ftype); OCP\Response::setContentDispositionHeader(basename($filename), 'attachment'); -OCP\Response::disableCaching(); +header('Pragma: public');// enable caching in IE +header('Expires: 0'); +header("Cache-Control: must-revalidate, post-check=0, pre-check=0"); OCP\Response::setContentLengthHeader($view->filesize($versionName)); OC_Util::obEnd(); |