From 36721a8d0dfc4f01435029a46b99f483b422f584 Mon Sep 17 00:00:00 2001 From: Carl Schwan Date: Fri, 25 Feb 2022 14:24:07 +0100 Subject: [PATCH] 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 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; } -- 2.39.5