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:
parent
07730da194
commit
c8c6c70bb0
@ -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
|
||||||
}
|
}
|
||||||
|
|
||||||
##
|
##
|
||||||
|
Loading…
Reference in New Issue
Block a user