From c8c6c70bb0e0a67f5b293a5886a8725aa00e620b Mon Sep 17 00:00:00 2001 From: Matthias Kretschmann Date: Fri, 2 Nov 2018 15:04:19 +0100 Subject: [PATCH] cache js, exclude xml from caching --- scripts/deploy.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/deploy.sh b/scripts/deploy.sh index d2d22005..d622a181 100755 --- a/scripts/deploy.sh +++ b/scripts/deploy.sh @@ -10,9 +10,9 @@ AWS_S3_BUCKET_BETA="beta.kremalicious.com" set -e; function s3sync { - aws s3 sync ./public s3://"$1" --exclude "*.html" --exclude "*.js" --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 --delete --acl public-read - aws s3 sync ./public s3://"$1" --exclude "*" --include "*.html" --include "*.js" --cache-control max-age=0,no-cache,no-store,must-revalidate --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 } ##