Skip to content

Commit

Permalink
Fix CacheControl in S3 publish (#134)
Browse files Browse the repository at this point in the history
  • Loading branch information
cbalioglu committed Nov 4, 2023
1 parent 6618de8 commit 83b57fd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ci/scripts/update_pep503_index.py
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down

0 comments on commit 83b57fd

Please sign in to comment.