]> git.ipfire.org Git - ipfire.org.git/commitdiff
location: Disable caching for the index page
authorMichael Tremer <michael.tremer@ipfire.org>
Mon, 8 Jun 2020 15:04:08 +0000 (15:04 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Mon, 8 Jun 2020 15:04:08 +0000 (15:04 +0000)
This page shows the user where they are visiting from
which cannot be cached.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/web/location.py

index a15bc701dd296cc25a4058ddb311f5d34078d95d..3ba5fcf176ce222ca742a1cb9e076a7da685c1c4 100644 (file)
@@ -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)