Skip to content

Commit

Permalink
Disable the cache control settings on the certificate pages
Browse files Browse the repository at this point in the history
Refs. #475
  • Loading branch information
ale-rt committed Nov 8, 2022
1 parent 97d28b0 commit b848bde
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
3 changes: 3 additions & 0 deletions docs/changes.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ Changelog
14.2.0 (unreleased)
-------------------

- Disable the cache control settings on the certificate pages.
Refs. `#475 <https://github.com/euphorie/Euphorie/issues/475>`_.
[ale-rt]
- Upgrade Patternslib to 9.7.0-alpha.5
[thet]
- Export/import training questions
Expand Down
7 changes: 6 additions & 1 deletion src/euphorie/client/browser/training.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()


Expand Down

0 comments on commit b848bde

Please sign in to comment.