Merge pull request #1 from ashleytqy/ash.etag

Disable cache and etags
This commit is contained in:
ashley teoh 2018-03-30 13:57:00 -04:00 committed by GitHub
commit 4f944737d8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -138,8 +138,12 @@ class NbconvertFileHandler(IPythonHandler):
self.set_header('Content-Type',
'%s; charset=utf-8' % exporter.output_mimetype)
self.set_header('Cache-Control', 'no-store, no-cache, must-revalidate, max-age=0')
self.finish(output)
def compute_etag(self):
return None
class NbconvertPostHandler(IPythonHandler):
SUPPORTED_METHODS = ('POST',)