mirror of
https://github.com/kremalicious/portfolio.git
synced 2024-12-22 09:13:19 +01:00
deployment: cache everything by default, selectively overwrite
This commit is contained in:
parent
cf46459653
commit
97a414f640
@ -12,14 +12,6 @@ set -e;
|
||||
|
||||
function s3sync {
|
||||
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 \
|
||||
--delete \
|
||||
--acl public-read
|
||||
@ -30,6 +22,9 @@ function s3sync {
|
||||
--include "sw.js" \
|
||||
--include "chunk-map.json" \
|
||||
--include "sitemap.xml" \
|
||||
--include ".iconstats.json" \
|
||||
--include "humans.txt" \
|
||||
--include "robots.txt" \
|
||||
--cache-control public,max-age=0,must-revalidate \
|
||||
--delete \
|
||||
--acl public-read
|
||||
|
Loading…
Reference in New Issue
Block a user