From d25c164f962e90df37de05626685f2dce539680c Mon Sep 17 00:00:00 2001 From: Matthias Kretschmann Date: Fri, 2 Nov 2018 15:41:48 +0100 Subject: [PATCH] add immutable cache header --- scripts/deploy.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/deploy.sh b/scripts/deploy.sh index d622a181..d15d25f1 100755 --- a/scripts/deploy.sh +++ b/scripts/deploy.sh @@ -10,7 +10,7 @@ AWS_S3_BUCKET_BETA="beta.kremalicious.com" set -e; function s3sync { - aws s3 sync ./public s3://"$1" --exclude "*.html" --exclude "*.xml" --cache-control max-age=31536000,public --delete --acl public-read + aws s3 sync ./public s3://"$1" --exclude "*.html" --exclude "*.xml" --cache-control max-age=31536000,public,immutable --delete --acl public-read aws s3 sync ./public s3://"$1" --exclude "*" --include "*.html" --include "*.xml" --cache-control max-age=0,no-cache,no-store,must-revalidate --delete --acl public-read }