Skip to content

Commit e2575ed

Browse files
committed
adding cache control headers to the object storage upload so the badges will not be cached by github
1 parent bfbfbb4 commit e2575ed

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

ci/ci.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -297,12 +297,12 @@ def report_upload():
297297
outdir + filename,
298298
bucket,
299299
destination_dir + filename,
300-
ExtraArgs={'ContentType': CT,'ACL': "public-read"})
300+
ExtraArgs={'ContentType': CT,'ACL': "public-read",'CacheControl': 'no-cache'})
301301
spaces.upload_file(
302302
outdir + filename,
303303
bucket,
304304
latest_dir + filename,
305-
ExtraArgs={'ContentType': CT,'ACL': "public-read"})
305+
ExtraArgs={'ContentType': CT,'ACL': "public-read",'CacheControl': 'no-cache'})
306306
except Exception as error:
307307
core_fail('Upload Error ' + str(error))
308308

0 commit comments

Comments
 (0)