add cache-control in respond_zip function

This commit is contained in:
Celina Kilcrease 2018-04-10 22:24:27 -04:00
parent 3f6bfde0a3
commit e56060a67a

View File

@ -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()