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
parent 4cdc8900f7
commit 36721a8d0d

View file

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