diff options
author | Bart Visscher <bartv@thisnet.nl> | 2012-02-13 23:48:05 +0100 |
---|---|---|
committer | Bart Visscher <bartv@thisnet.nl> | 2012-02-13 23:48:05 +0100 |
commit | 525306c1e2930c6b378b0a4e9fb92eeb90865b0a (patch) | |
tree | 790f22f18cc999de67fbcaa8de691c843898730e /lib/files.php | |
parent | 29fc82c364e2e90330d9858528e50d785e5e66bd (diff) | |
download | nextcloud-server-525306c1e2930c6b378b0a4e9fb92eeb90865b0a.tar.gz nextcloud-server-525306c1e2930c6b378b0a4e9fb92eeb90865b0a.zip |
Replace Expires and caching headers by OC_Response functions
Diffstat (limited to 'lib/files.php')
-rw-r--r-- | lib/files.php | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/files.php b/lib/files.php index 457c8ea38f2..1f8331afb21 100644 --- a/lib/files.php +++ b/lib/files.php @@ -91,9 +91,7 @@ class OC_Files { if($zip or OC_Filesystem::is_readable($filename)){ header('Content-Disposition: attachment; filename="'.basename($filename).'"'); 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(); if($zip){ header('Content-Type: application/zip'); header('Content-Length: ' . filesize($filename)); |