Skip to content

Commit 2d58947

Browse files
committed
Setting content type
1 parent 3b2cfa3 commit 2d58947

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

scripts/create_download_tracker.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,13 @@ def _update_index_html(files, s3_client, dryrun=False):
7272
print('New index file:') # noqa: T201 `print` found
7373
print(new_index) # noqa: T201 `print` found
7474
else:
75-
s3_client.put_object(Bucket=BUCKET, Key=index_file_path, Body=new_index)
75+
s3_client.put_object(
76+
Bucket=BUCKET,
77+
Key=index_file_path,
78+
Body=new_index,
79+
ContentType='text/html',
80+
CacheControl='no-cache'
81+
)
7682

7783

7884
def upload_package(dryrun=False):

0 commit comments

Comments
 (0)