From 3d29d6bde4f91e396a99cf7f999c109f8cf0ccae Mon Sep 17 00:00:00 2001 From: Aaron Gutierrez Date: Sun, 13 Jan 2019 00:17:29 -0800 Subject: [PATCH] don't cache root forever --- pub.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pub.py b/pub.py index 748a90b..9e5a21c 100755 --- a/pub.py +++ b/pub.py @@ -44,7 +44,7 @@ def upload_file(filename, overwrite=True): s3.upload_file(filename, BUCKET, filename, ExtraArgs={ 'ACL': 'public-read', 'ContentType': TYPE_MAP[ext], - 'CacheControl': 'public, max-age=31536000' + 'CacheControl': 'public, max-age={}'.format('86400' if ext == 'html' else '31536000') }) print('\tDone.')