template_response: add http header Content-Cache: no-cache for ie

This commit is contained in:
Jérôme Schneider 2014-10-27 16:42:37 +01:00
parent 9003c07ecc
commit a51f3081f0
1 changed files with 1 additions and 1 deletions

View File

@ -115,7 +115,7 @@ administrator and inform them of the time the error occurred."
serve_template("response.html", title=title, body=msg))
def template_response(templatename, values):
headers = HTTPHeader({'Content-Type': ['text/html']})
headers = HTTPHeader({'Content-Type': ['text/html'], 'Cache-Control': 'no-cache'})
msg = serve_template(templatename, **values)
return HTTPResponse(200, 'OK', headers, msg)