1
0
mirror of https://github.com/kremalicious/blog.git synced 2024-12-23 01:30:01 +01:00

cache js, exclude xml from caching

This commit is contained in:
Matthias Kretschmann 2018-11-02 15:04:19 +01:00
parent 07730da194
commit c8c6c70bb0
Signed by: m
GPG Key ID: 606EEEF3C479A91F

View File

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