Skip to content

Commit 222a002

Browse files
edmorleyatalman
andauthored
Apply suggestions from code review
Add back `must-revalidate` Co-authored-by: Andrey Talman <[email protected]>
1 parent 37a778d commit 222a002

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

s3_management/manage.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -426,7 +426,7 @@ def upload_libtorch_html(self) -> None:
426426
key=f"{subdir}/{self.html_name}"
427427
).put(
428428
ACL='public-read',
429-
CacheControl='max-age=600, public',
429+
CacheControl='max-age=600, public, must-revalidate',
430430
ContentType='text/html',
431431
Body=index_html
432432
)
@@ -440,7 +440,7 @@ def upload_pep503_htmls(self) -> None:
440440
key=f"{subdir}/index.html"
441441
).put(
442442
ACL='public-read',
443-
CacheControl='max-age=600, public',
443+
CacheControl='max-age=600, public, must-revalidate',
444444
ContentType='text/html',
445445
Body=index_html
446446
)
@@ -453,7 +453,7 @@ def upload_pep503_htmls(self) -> None:
453453
key=f"{subdir}/{compat_pkg_name}/index.html"
454454
).put(
455455
ACL='public-read',
456-
CacheControl='max-age=600, public',
456+
CacheControl='max-age=600, public, must-revalidate',
457457
ContentType='text/html',
458458
Body=index_html
459459
)

0 commit comments

Comments
 (0)