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

deployment: cache everything by default, selectively overwrite

This commit is contained in:
Matthias Kretschmann 2018-12-07 14:05:36 +01:00
parent cf46459653
commit 97a414f640
Signed by: m
GPG Key ID: 606EEEF3C479A91F

View File

@ -12,14 +12,6 @@ set -e;
function s3sync { function s3sync {
aws s3 sync ./public s3://"$1" \ aws s3 sync ./public s3://"$1" \
--exclude "*" \
--include "*.js" \
--include "*.map" \
--include "*.css" \
--include "static/*" \
--include "*.png" \
--exclude "sw.js" \
--exclude "workbox*/*" \
--cache-control public,max-age=31536000,immutable \ --cache-control public,max-age=31536000,immutable \
--delete \ --delete \
--acl public-read --acl public-read
@ -30,6 +22,9 @@ function s3sync {
--include "sw.js" \ --include "sw.js" \
--include "chunk-map.json" \ --include "chunk-map.json" \
--include "sitemap.xml" \ --include "sitemap.xml" \
--include ".iconstats.json" \
--include "humans.txt" \
--include "robots.txt" \
--cache-control public,max-age=0,must-revalidate \ --cache-control public,max-age=0,must-revalidate \
--delete \ --delete \
--acl public-read --acl public-read