mirror of
https://github.com/nextcloud/server.git
synced 2026-05-19 08:25:56 -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
d49d505439
commit
4f9fbf8dfb
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue