From b848bde9de4baccf485c9e07ea8139b676254c75 Mon Sep 17 00:00:00 2001 From: ale-rt Date: Tue, 8 Nov 2022 11:44:01 +0100 Subject: [PATCH] Disable the cache control settings on the certificate pages Refs. #475 --- docs/changes.rst | 3 +++ src/euphorie/client/browser/training.py | 7 ++++++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/docs/changes.rst b/docs/changes.rst index e211141f19..461a274012 100644 --- a/docs/changes.rst +++ b/docs/changes.rst @@ -4,6 +4,9 @@ Changelog 14.2.0 (unreleased) ------------------- +- Disable the cache control settings on the certificate pages. + Refs. `#475 `_. + [ale-rt] - Upgrade Patternslib to 9.7.0-alpha.5 [thet] - Export/import training questions diff --git a/src/euphorie/client/browser/training.py b/src/euphorie/client/browser/training.py index 753b7d1066..50546f8dc5 100644 --- a/src/euphorie/client/browser/training.py +++ b/src/euphorie/client/browser/training.py @@ -518,7 +518,12 @@ def __call__(self): if "risk_id" in reply: self.handle_measure_configuration(reply) - self.request.RESPONSE.addHeader("Cache-Control", "public,max-age=60") + # XXX This is commented because it causes problems on logout, see: + # - https://github.com/euphorie/Euphorie/issues/475 + # + # We should come out with a better solution that does not require setting + # the cache headers here. + # self.request.RESPONSE.addHeader("Cache-Control", "public,max-age=60") return self.index()