From: Michael Tremer Date: Mon, 8 Jun 2020 15:04:08 +0000 (+0000) Subject: location: Disable caching for the index page X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=0dfa4ce686f35d88eb37b2d716064fbaa087ceb5;p=ipfire.org.git location: Disable caching for the index page This page shows the user where they are visiting from which cannot be cached. Signed-off-by: Michael Tremer --- diff --git a/src/web/location.py b/src/web/location.py index a15bc701..3ba5fcf1 100644 --- a/src/web/location.py +++ b/src/web/location.py @@ -8,7 +8,7 @@ from .. import util from . import base -class IndexHandler(base.BaseHandler): +class IndexHandler(auth.CacheMixin, base.BaseHandler): def get(self): self.render("location/index.html", address=self.current_address)