From 70b1f510f2eab2276beab2e0b47d08f04c63c966 Mon Sep 17 00:00:00 2001 From: Morris Jobke Date: Mon, 22 Jan 2018 15:35:35 +0100 Subject: Use normal header() calls instead of private method calls Signed-off-by: Morris Jobke --- apps/files_versions/download.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'apps/files_versions') 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(); -- cgit v1.2.3