disable cache and etag

This commit is contained in:
Ashley Teoh 2018-03-30 13:43:38 -04:00
parent faa0cab302
commit 7b8894fe59

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',)