add cache-control in respond_zip function

pull/3484/head
Celina Kilcrease 8 years ago
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…
Cancel
Save