From: Michael Tremer Date: Tue, 5 Nov 2019 16:08:25 +0000 (+0000) Subject: people: Cache avatars for forever now since they have a hash X-Git-Url: http://git.ipfire.org/?p=ipfire.org.git;a=commitdiff_plain;h=e2998441e22ae559abe88d712a236f11b421af05 people: Cache avatars for forever now since they have a hash Signed-off-by: Michael Tremer --- diff --git a/src/web/people.py b/src/web/people.py index d7a8675d..ea6ea8a5 100644 --- a/src/web/people.py +++ b/src/web/people.py @@ -46,8 +46,8 @@ class AvatarHandler(base.BaseHandler): if not account: raise tornado.web.HTTPError(404, "Could not find account %s" % uid) - # Allow downstream to cache this for 60 minutes - self.set_expires(3600) + # Allow downstream to cache this for a year + self.set_expires(31536000) # Resize avatar avatar = account.get_avatar(size)