Set Cache-control on all generated pages, centralize in Endpoint
[cascardo/ipsilon.git] / ipsilon / util / endpoint.py
index f6fd667..f160329 100644 (file)
@@ -16,7 +16,10 @@ class Endpoint(Log):
         self._site = site
         self.basepath = cherrypy.config.get('base.mount', "")
         self.user = None
-        self.default_headers = dict()
+        self.default_headers = {
+            'Cache-Control': 'no-cache, no-store, must-revalidate, private',
+            'Pragma': 'no-cache',
+        }
         self.auth_protect = False
 
     def get_url(self):