From e2575ed2a2a3ed4c49f12309b4713f199ab013b4 Mon Sep 17 00:00:00 2001 From: thelamer Date: Sun, 29 Jul 2018 17:57:22 -0700 Subject: [PATCH] adding cache control headers to the object storage upload so the badges will not be cached by github --- ci/ci.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ci/ci.py b/ci/ci.py index 82cf1ce..27b8876 100755 --- a/ci/ci.py +++ b/ci/ci.py @@ -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))