Commit 10ed9259 authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

CaptchaField: set no-store cache-control header to be consistent with our...

CaptchaField: set no-store cache-control header to be consistent with our caching policy manager configuration.
parent 7187fb69
......@@ -213,7 +213,7 @@ class CaptchaWidget(Widget.TextWidget):
css_class=field.get_value('css_class'),
size=10)
# HTML page having a captcha field should never be cached.
REQUEST.RESPONSE.setHeader('Cache-Control', 'max-age=0')
REQUEST.RESPONSE.setHeader('Cache-Control', 'max-age=0, no-store')
return captcha_field + key_field + splitter + answer
def render_view(self, field, value, REQUEST=None, render_prefix=None):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment