summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCarl Schwan <carl@carlschwan.eu>2022-02-25 14:24:07 +0100
committerCarl Schwan <carlschwan@kde.org>2022-03-02 18:42:03 +0100
commit4f9fbf8dfb587e0ee97dd09a2de040d3b94109c5 (patch)
tree6233c9947676d747a228ba385ea0a013a0a15ab1
parentd49d5054399a9e96c230fb82a9d54ae1a9a60aba (diff)
downloadnextcloud-server-4f9fbf8dfb587e0ee97dd09a2de040d3b94109c5.tar.gz
nextcloud-server-4f9fbf8dfb587e0ee97dd09a2de040d3b94109c5.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>
-rw-r--r--core/Controller/AvatarController.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/Controller/AvatarController.php b/core/Controller/AvatarController.php
index 3b87bf15b2f..a567baf5867 100644
--- a/core/Controller/AvatarController.php
+++ b/core/Controller/AvatarController.php
@@ -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;
}