Skip to content

Commit

Permalink
try some caching
Browse files Browse the repository at this point in the history
  • Loading branch information
pysailor committed Mar 30, 2022
1 parent e85fcb7 commit 3d2bcc8
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
1 change: 0 additions & 1 deletion src/euphorie/client/browser/templates/shell.pt
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
webhelpers nocall:context/@@webhelpers;
portal_state context/plone_portal_state;
language portal_state/language;
dummy_header python:request.RESPONSE.appendHeader('cache-control', 'no-cache');
splash_message webhelpers/splash_message;
no_splash view/no_splash|nothing;
tool_notification webhelpers/tool_notification;
Expand Down
1 change: 1 addition & 0 deletions src/euphorie/client/browser/training.py
Original file line number Diff line number Diff line change
Expand Up @@ -353,4 +353,5 @@ def __call__(self):
)
self.webhelpers.traversed_session.session.touch()

self.request.RESPONSE.addHeader("Cache-Control", "public,max-age=60")
return self.index()

0 comments on commit 3d2bcc8

Please sign in to comment.