mirror of
https://github.com/kremalicious/blog.git
synced 2025-01-03 18:35:07 +01:00
caching change
This commit is contained in:
parent
a38a3d7aa7
commit
62071b706e
@ -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
|
||||
}
|
||||
|
||||
##
|
||||
|
Loading…
Reference in New Issue
Block a user