make sure index does not get cached
This commit is contained in:
parent
59bbd33a55
commit
82f7e83e74
1 changed files with 3 additions and 0 deletions
|
@ -42,6 +42,9 @@ class MainHandler(OMLHandler):
|
|||
content = content.replace('oml.js', 'oml.update.js')
|
||||
self.set_header('Content-Type', 'text/html')
|
||||
self.set_header('Content-Length', str(len(content)))
|
||||
self.set_header('Cache-Control', 'no-cache, no-store, must-revalidate')
|
||||
self.set_header('Pragma', 'no-cache')
|
||||
self.set_header('Expires', '0')
|
||||
self.write(content)
|
||||
|
||||
def log_request(handler):
|
||||
|
|
Loading…
Reference in a new issue