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 /files | |
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 'files')
-rw-r--r-- | files/download.php | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/files/download.php b/files/download.php index 71f91d352f7..d1f5ba486d7 100644 --- a/files/download.php +++ b/files/download.php @@ -41,9 +41,7 @@ $ftype=OC_Filesystem::getMimeType( $filename ); header('Content-Type:'.$ftype); header('Content-Disposition: attachment; filename="'.basename($filename).'"'); -header('Expires: 0'); -header('Cache-Control: must-revalidate, post-check=0, pre-check=0'); -header('Pragma: public'); +OC_Response::disableCaching(); header('Content-Length: '.OC_Filesystem::filesize($filename)); @ob_end_clean(); |