1
0
mirror of https://github.com/kremalicious/blog.git synced 2024-11-15 01:25:28 +01:00

add immutable cache header

This commit is contained in:
Matthias Kretschmann 2018-11-02 15:41:48 +01:00
parent 57036595a2
commit d25c164f96
Signed by: m
GPG Key ID: 606EEEF3C479A91F

View File

@ -10,7 +10,7 @@ AWS_S3_BUCKET_BETA="beta.kremalicious.com"
set -e; set -e;
function s3sync { 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 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
} }