From: Michael Tremer Date: Thu, 19 Nov 2020 11:00:06 +0000 (+0000) Subject: about: Cache the page for a day X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=2815c61b3c02764ce7f115c08bba0f2faef3e01c;p=ipfire.org.git about: Cache the page for a day Signed-off-by: Michael Tremer --- diff --git a/src/web/handlers.py b/src/web/handlers.py index 03c4c3cc..8bbfadc5 100644 --- a/src/web/handlers.py +++ b/src/web/handlers.py @@ -28,6 +28,9 @@ class IndexHandler(base.BaseHandler): class AboutHandler(base.BaseHandler): def get(self): + # Cache page for a day + self.set_expires(3600 * 24) + self.render("about.html")