Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarl Schwan <carl@carlschwan.eu>2022-02-25 16:24:07 +0300
committerCarl Schwan <carl@carlschwan.eu>2022-02-25 16:24:07 +0300
commit36721a8d0dfc4f01435029a46b99f483b422f584 (patch)
tree425c2e4adf8a9772ff9dabd46218a4777c39aad0 /core/Controller
parent4cdc8900f7325d38056060b355e8f25b79b96413 (diff)
Fix caching of the user avatar
Now on firefox/safari it is only refetched once a day. On Chrom{e,ium} we keep the previous behavior of maybe refetching it more often. This also notify the user about this behavior when they upload an avatar picture. Signed-off-by: Carl Schwan <carl@carlschwan.eu>
Diffstat (limited to 'core/Controller')
-rw-r--r--core/Controller/AvatarController.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/Controller/AvatarController.php b/core/Controller/AvatarController.php
index ed8d0c3cdeb..d8c9745c139 100644
--- a/core/Controller/AvatarController.php
+++ b/core/Controller/AvatarController.php
@@ -139,7 +139,7 @@ class AvatarController extends Controller {
}
// Cache for 1 day
- $response->cacheFor(60 * 60 * 24);
+ $response->cacheFor(60 * 60 * 24, false, true);
return $response;
}