Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBart Visscher <bartv@thisnet.nl>2012-02-14 02:48:05 +0400
committerBart Visscher <bartv@thisnet.nl>2012-02-14 02:48:05 +0400
commit525306c1e2930c6b378b0a4e9fb92eeb90865b0a (patch)
tree790f22f18cc999de67fbcaa8de691c843898730e /apps/files_sharing
parent29fc82c364e2e90330d9858528e50d785e5e66bd (diff)
Replace Expires and caching headers by OC_Response functions
Diffstat (limited to 'apps/files_sharing')
-rw-r--r--apps/files_sharing/get.php4
1 files changed, 1 insertions, 3 deletions
diff --git a/apps/files_sharing/get.php b/apps/files_sharing/get.php
index c80b0c2ef03..3a3db6dd38e 100644
--- a/apps/files_sharing/get.php
+++ b/apps/files_sharing/get.php
@@ -67,9 +67,7 @@ if ($source !== false) {
//get time mimetype and set the headers
$mimetype = OC_Filesystem::getMimeType($source);
header("Content-Transfer-Encoding: binary");
- header("Expires: 0");
- header("Cache-Control: must-revalidate, post-check=0, pre-check=0");
- header("Pragma: public");
+ OC_Response::disableCaching();
header('Content-Disposition: filename="'.basename($source).'"');
header("Content-Type: " . $mimetype);
header("Content-Length: " . OC_Filesystem::filesize($source));