mirror of
https://github.com/jupyter/notebook.git
synced 2025-01-12 11:45:38 +08:00
add cache-control in respond_zip function
This commit is contained in:
parent
3f6bfde0a3
commit
e56060a67a
@ -40,6 +40,7 @@ def respond_zip(handler, name, output, resources):
|
||||
zip_filename = os.path.splitext(name)[0] + '.zip'
|
||||
handler.set_attachment_header(zip_filename)
|
||||
handler.set_header('Content-Type', 'application/zip')
|
||||
handler.set_header('Cache-Control', 'no-store, no-cache, must-revalidate, max-age=0')
|
||||
|
||||
# Prepare the zip file
|
||||
buffer = io.BytesIO()
|
||||
|
Loading…
Reference in New Issue
Block a user