From 36721a8d0dfc4f01435029a46b99f483b422f584 Mon Sep 17 00:00:00 2001 From: Carl Schwan Date: Fri, 25 Feb 2022 14:24:07 +0100 Subject: [PATCH 1/2] 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 --- core/Controller/AvatarController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/Controller/AvatarController.php b/core/Controller/AvatarController.php index ed8d0c3cdeb54..d8c9745c1392c 100644 --- a/core/Controller/AvatarController.php +++ b/core/Controller/AvatarController.php @@ -139,7 +139,7 @@ public function getAvatar($userId, $size) { } // Cache for 1 day - $response->cacheFor(60 * 60 * 24); + $response->cacheFor(60 * 60 * 24, false, true); return $response; } From 2ebffc05352fe0566f8bb1e1a6b07583992b8f0c Mon Sep 17 00:00:00 2001 From: Carl Schwan Date: Fri, 25 Feb 2022 14:28:15 +0100 Subject: [PATCH 2/2] Add warning to the user Signed-off-by: Carl Schwan Co-authored-by: MichaIng Co-authored-by: zroebg --- apps/settings/templates/settings/personal/personal.info.php | 1 + 1 file changed, 1 insertion(+) diff --git a/apps/settings/templates/settings/personal/personal.info.php b/apps/settings/templates/settings/personal/personal.info.php index bcd8315fc431c..19265ebfc85d0 100644 --- a/apps/settings/templates/settings/personal/personal.info.php +++ b/apps/settings/templates/settings/personal/personal.info.php @@ -73,6 +73,7 @@