adding cache control headers to the object storage upload so the badges will not be cached by github

This commit is contained in:
thelamer 2018-07-29 17:57:22 -07:00
parent bfbfbb4889
commit e2575ed2a2

View File

@ -297,12 +297,12 @@ def report_upload():
outdir + filename,
bucket,
destination_dir + filename,
ExtraArgs={'ContentType': CT,'ACL': "public-read"})
ExtraArgs={'ContentType': CT,'ACL': "public-read",'CacheControl': 'no-cache'})
spaces.upload_file(
outdir + filename,
bucket,
latest_dir + filename,
ExtraArgs={'ContentType': CT,'ACL': "public-read"})
ExtraArgs={'ContentType': CT,'ACL': "public-read",'CacheControl': 'no-cache'})
except Exception as error:
core_fail('Upload Error ' + str(error))