From 83b57fd79ab6cb564c86b598dccdbcf9f700d08d Mon Sep 17 00:00:00 2001 From: Can Balioglu Date: Fri, 3 Nov 2023 22:46:59 -0400 Subject: [PATCH] Fix CacheControl in S3 publish (#134) --- ci/scripts/update_pep503_index.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ci/scripts/update_pep503_index.py b/ci/scripts/update_pep503_index.py index 75f8f8b7c..4d8bb8a9f 100644 --- a/ci/scripts/update_pep503_index.py +++ b/ci/scripts/update_pep503_index.py @@ -81,7 +81,7 @@ def create_or_update_package_index( def upload_index(bucket: "Bucket", prefix: str, index: str) -> None: - metadata = {"ContentType": "text/html", "Cache-Control": "max-age=300"} + metadata = {"ContentType": "text/html", "CacheControl": "max-age=300"} with BytesIO(index.encode("utf-8")) as fp: bucket.upload_fileobj( # type: ignore[attr-defined]