Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Disable the cache control settings on the certificate pages #476

Merged
merged 1 commit into from
Nov 8, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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