mirror of
https://github.com/nextcloud/server.git
synced 2026-05-28 04:32:30 -04:00
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:
parent
4cdc8900f7
commit
36721a8d0d
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue