]> git.ipfire.org Git - ipfire.org.git/commitdiff
people: Cache avatars for forever now since they have a hash
authorMichael Tremer <michael.tremer@ipfire.org>
Tue, 5 Nov 2019 16:08:25 +0000 (16:08 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Tue, 5 Nov 2019 16:08:25 +0000 (16:08 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/web/people.py

index d7a8675d59ae04b76033bff91c5e8a1538185880..ea6ea8a574b426a02502517721acf855eb9bbee3 100644 (file)
@@ -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)