From: Michael Tremer Date: Mon, 26 Jun 2023 10:17:20 +0000 (+0000) Subject: web: static: Cache pages for up to 24 hours X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=d271cdb4866596a57ad359affe884efd3f2a09b5;p=ipfire.org.git web: static: Cache pages for up to 24 hours Signed-off-by: Michael Tremer --- diff --git a/src/web/handlers.py b/src/web/handlers.py index e79e647c..6a495f8b 100644 --- a/src/web/handlers.py +++ b/src/web/handlers.py @@ -46,7 +46,7 @@ class StaticHandler(base.BaseHandler): self._template = template def get(self): - # Cache page for 60 minutes - self.set_expires(3600) + # Cache page for 24 hours + self.set_expires(86400) self.render("static/%s" % self._template)