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 --- lib/private/legacy/response.php | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) (limited to 'lib/private/legacy/response.php') diff --git a/lib/private/legacy/response.php b/lib/private/legacy/response.php index 975ff570485..1b0b01de972 100644 --- a/lib/private/legacy/response.php +++ b/lib/private/legacy/response.php @@ -55,7 +55,7 @@ class OC_Response { header('Cache-Control: max-age='.$cache_time.', must-revalidate'); } else { - self::setExpiresHeader(0); + header('Expires: 0'); header("Cache-Control: must-revalidate, post-check=0, pre-check=0"); } } @@ -66,14 +66,6 @@ class OC_Response { } - /** - * disable browser caching - * @see enableCaching with cache_time = 0 - */ - static public function disableCaching() { - self::enableCaching(0); - } - /** * Set response status * @param int $status a HTTP status code, see also the STATUS constants -- cgit v1.2.3