From e56060a67abe98ca16793ab3cfd31b45ba4510ca Mon Sep 17 00:00:00 2001 From: Celina Kilcrease Date: Tue, 10 Apr 2018 22:24:27 -0400 Subject: [PATCH] add cache-control in respond_zip function --- notebook/nbconvert/handlers.py | 1 + 1 file changed, 1 insertion(+) diff --git a/notebook/nbconvert/handlers.py b/notebook/nbconvert/handlers.py index 6543dc11a..bb26664aa 100644 --- a/notebook/nbconvert/handlers.py +++ b/notebook/nbconvert/handlers.py @@ -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()