From: Carl Schwan Date: Fri, 25 Feb 2022 13:24:07 +0000 (+0100) Subject: Fix caching of the user avatar X-Git-Tag: v24.0.0beta1~141^2~1 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=36721a8d0dfc4f01435029a46b99f483b422f584;p=nextcloud-server.git 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 --- 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; }