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:
parent
cf46459653
commit
97a414f640
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user