Skip to content

Commit

Permalink
add cache-control in respond_zip function
Browse files Browse the repository at this point in the history
  • Loading branch information
ckilcrease committed Apr 11, 2018
1 parent 3f6bfde commit e56060a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions notebook/nbconvert/handlers.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit e56060a

Please sign in to comment.