1
0
mirror of https://github.com/kremalicious/blog.git synced 2025-01-03 18:35:07 +01:00

caching change

This commit is contained in:
Matthias Kretschmann 2018-12-01 20:42:42 +01:00
parent a38a3d7aa7
commit 62071b706e
Signed by: m
GPG Key ID: 606EEEF3C479A91F

View File

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