mirror of
https://github.com/scratchfoundation/scratch-www.git
synced 2024-11-27 01:25:52 -05:00
Merge pull request #910 from rschamp/bugfix/787
Add Cache-Control header to all S3 uploads
This commit is contained in:
parent
162aa25856
commit
1e7bd97987
1 changed files with 4 additions and 4 deletions
8
Makefile
8
Makefile
|
@ -1,7 +1,7 @@
|
||||||
ESLINT=./node_modules/.bin/eslint
|
ESLINT=./node_modules/.bin/eslint
|
||||||
NODE=node
|
NODE=node
|
||||||
SASSLINT=./node_modules/.bin/sass-lint -v
|
SASSLINT=./node_modules/.bin/sass-lint -v
|
||||||
S3CMD=s3cmd
|
S3CMD=s3cmd sync -P --delete-removed --add-header=Cache-Control:public,max-age=3600
|
||||||
TAP=./node_modules/.bin/tap
|
TAP=./node_modules/.bin/tap
|
||||||
WATCH=./node_modules/.bin/watch
|
WATCH=./node_modules/.bin/watch
|
||||||
WEBPACK=./node_modules/.bin/webpack
|
WEBPACK=./node_modules/.bin/webpack
|
||||||
|
@ -31,9 +31,9 @@ webpack:
|
||||||
$(WEBPACK) --bail
|
$(WEBPACK) --bail
|
||||||
|
|
||||||
sync-s3:
|
sync-s3:
|
||||||
$(S3CMD) sync -P --delete-removed --exclude '.DS_Store' --exclude '*.svg' --exclude '*.js' ./build/ s3://$(S3_BUCKET_NAME)/
|
$(S3CMD) --exclude '.DS_Store' --exclude '*.svg' --exclude '*.js' ./build/ s3://$(S3_BUCKET_NAME)/
|
||||||
$(S3CMD) sync -P --delete-removed --exclude '*' --include '*.svg' --mime-type 'image/svg+xml' ./build/ s3://$(S3_BUCKET_NAME)/
|
$(S3CMD) --exclude '*' --include '*.svg' --mime-type 'image/svg+xml' ./build/ s3://$(S3_BUCKET_NAME)/
|
||||||
$(S3CMD) sync -P --delete-removed --exclude '*' --include '*.js' --mime-type 'application/javascript' ./build/ s3://$(S3_BUCKET_NAME)/
|
$(S3CMD) --exclude '*' --include '*.js' --mime-type 'application/javascript' ./build/ s3://$(S3_BUCKET_NAME)/
|
||||||
|
|
||||||
sync-fastly:
|
sync-fastly:
|
||||||
$(NODE) ./bin/configure-fastly.js
|
$(NODE) ./bin/configure-fastly.js
|
||||||
|
|
Loading…
Reference in a new issue