diff options
author | Carl Schwan <carl@carlschwan.eu> | 2022-02-25 14:24:07 +0100 |
---|---|---|
committer | Carl Schwan <carl@carlschwan.eu> | 2022-02-25 14:24:07 +0100 |
commit | 36721a8d0dfc4f01435029a46b99f483b422f584 (patch) | |
tree | 425c2e4adf8a9772ff9dabd46218a4777c39aad0 /core | |
parent | 4cdc8900f7325d38056060b355e8f25b79b96413 (diff) | |
download | nextcloud-server-36721a8d0dfc4f01435029a46b99f483b422f584.tar.gz nextcloud-server-36721a8d0dfc4f01435029a46b99f483b422f584.zip |
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>
Diffstat (limited to 'core')
-rw-r--r-- | core/Controller/AvatarController.php | 2 |
1 files changed, 1 insertions, 1 deletions
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; } |