summaryrefslogtreecommitdiffstats
path: root/lib/public
diff options
context:
space:
mode:
authorLukas Reschke <lukas@statuscode.ch>2016-09-05 15:08:43 +0200
committerGitHub <noreply@github.com>2016-09-05 15:08:43 +0200
commit06fa48670699a4dc752c2cd44284ef6dc5da9e9f (patch)
treec30a8037c2d0de9d7d41a7ba2177e782eed292d5 /lib/public
parent12736a359221cf9d6d4dc4c3aba83a545554b02e (diff)
parent6a85882f610ed34c971a1510f5876f0564fd7612 (diff)
downloadnextcloud-server-06fa48670699a4dc752c2cd44284ef6dc5da9e9f.tar.gz
nextcloud-server-06fa48670699a4dc752c2cd44284ef6dc5da9e9f.zip
Merge pull request #1158 from nextcloud/cache_avatars
Cache avatars
Diffstat (limited to 'lib/public')
-rw-r--r--lib/public/AppFramework/Http/Response.php3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/public/AppFramework/Http/Response.php b/lib/public/AppFramework/Http/Response.php
index eed9aa7c1a2..0b162b453a0 100644
--- a/lib/public/AppFramework/Http/Response.php
+++ b/lib/public/AppFramework/Http/Response.php
@@ -92,8 +92,7 @@ class Response {
public function cacheFor($cacheSeconds) {
if($cacheSeconds > 0) {
- $this->addHeader('Cache-Control', 'max-age=' . $cacheSeconds .
- ', must-revalidate');
+ $this->addHeader('Cache-Control', 'max-age=' . $cacheSeconds . ', must-revalidate');
} else {
$this->addHeader('Cache-Control', 'no-cache, no-store, must-revalidate');
}