From 83ec7148841303516fe31e76116b70c8a5f73aab Mon Sep 17 00:00:00 2001 From: Rob Crittenden Date: Mon, 16 Mar 2015 16:31:55 -0400 Subject: Set Cache-control on all generated pages, centralize in Endpoint See "Bindings for the OASIS Security Assertion Markup Language (SAML) V2.0" section 3.2.3.2. https://fedorahosted.org/ipsilon/ticket/7 Signed-off-by: Rob Crittenden Reviewed-by: Nathan Kinder --- ipsilon/util/endpoint.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'ipsilon/util/endpoint.py') diff --git a/ipsilon/util/endpoint.py b/ipsilon/util/endpoint.py index f6fd667..f160329 100644 --- a/ipsilon/util/endpoint.py +++ b/ipsilon/util/endpoint.py @@ -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): -- cgit