summaryrefslogtreecommitdiffstats
path: root/lib/public
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2018-01-22 15:35:35 +0100
committerRoeland Jago Douma <roeland@famdouma.nl>2018-02-19 09:40:25 +0100
commit70b1f510f2eab2276beab2e0b47d08f04c63c966 (patch)
tree9bea5016d93081f747238baed4bc93d40a8e5eed /lib/public
parentb3ca73dc277f7c5b00f2175d5c42919f044631c0 (diff)
downloadnextcloud-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 'lib/public')
-rw-r--r--lib/public/Response.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/public/Response.php b/lib/public/Response.php
index dd029e12dbf..dbd506d379d 100644
--- a/lib/public/Response.php
+++ b/lib/public/Response.php
@@ -89,9 +89,12 @@ class Response {
* Disable browser caching
* @see enableCaching with cache_time = 0
* @since 4.0.0
+ * @deprecated 14.0.0 just set the headers
*/
static public function disableCaching() {
- \OC_Response::disableCaching();
+ header('Pragma: public');// enable caching in IE
+ header('Expires: 0');
+ header("Cache-Control: must-revalidate, post-check=0, pre-check=0");
}
/**