summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCarl Schwan <carl@carlschwan.eu>2022-02-25 14:24:07 +0100
committerCarl Schwan <carlschwan@kde.org>2022-03-02 18:44:54 +0100
commitcbcdf1c9b4d394b86fcb1f9147a7ccd1072ecdf1 (patch)
treed6cbc23124d723e9f905859dc39e8ad522446254
parent721f4d813b1c20274cd58e0511191ce6619edf14 (diff)
downloadnextcloud-server-cbcdf1c9b4d394b86fcb1f9147a7ccd1072ecdf1.tar.gz
nextcloud-server-cbcdf1c9b4d394b86fcb1f9147a7ccd1072ecdf1.zip
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>
-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 3b87bf15b2f..a567baf5867 100644
--- a/core/Controller/AvatarController.php
+++ b/core/Controller/AvatarController.php
@@ -134,7 +134,7 @@ class AvatarController extends Controller {
}
// Cache for 1 day
- $response->cacheFor(60 * 60 * 24);
+ $response->cacheFor(60 * 60 * 24, false, true);
return $response;
}