template_response: add http header Content-Cache: no-cache for ie
This commit is contained in:
parent
9003c07ecc
commit
a51f3081f0
|
@ -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)
|
||||
|
||||
|
|
Reference in New Issue