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>
This commit is contained in:
Carl Schwan 2022-02-25 14:24:07 +01:00 committed by Carl Schwan
parent d49d505439
commit 4f9fbf8dfb

View file

@ -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;
}