1
0
Fork 0

Don't cache json files

This commit is contained in:
Matthias Kretschmann 2018-11-19 04:40:27 +01:00
parent 4bac40befe
commit a2b3a6f2c2
1 changed files with 2 additions and 2 deletions

View File

@ -12,9 +12,9 @@ SITEMAP_URL="https%3A%2F%2Fkremalicious.com%2Fsitemap.xml"
set -e;
function s3sync {
aws s3 sync ./public s3://"$1" --exclude "*.html" --exclude "*.xml" --cache-control max-age=31536000,public,immutable --delete --acl public-read --quiet
aws s3 sync ./public s3://"$1" --exclude "*.html" --exclude "*.xml" --exclude "*.json" --cache-control max-age=31536000,public,immutable --delete --acl public-read --quiet
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 --quiet
aws s3 sync ./public s3://"$1" --exclude "*" --include "*.html" --include "*.xml" --include "*.json" --cache-control max-age=0,no-cache,no-store,must-revalidate --delete --acl public-read --quiet
}
##