Skip to content

Commit

Permalink
build: add max-age cache header (upload-examples)
Browse files Browse the repository at this point in the history
  • Loading branch information
postspectacular committed Sep 10, 2018
1 parent 146868d commit ada7d34
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/upload-examples
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,6 @@ for m in $modules; do
src="${src:0:len-3}"
echo "uploading $m ($src)..."
aws s3 cp $m/out/*.js.gz s3://demo.thi.ng/umbrella/$name/$src --profile toxi-s3 --acl public-read --content-type "application/javascript; charset=utf-8" --content-encoding gzip
aws s3 cp $m/out/index.html s3://demo.thi.ng/umbrella/$name/ --profile toxi-s3 --acl public-read
aws s3 cp $m/out/index.html s3://demo.thi.ng/umbrella/$name/ --profile toxi-s3 --acl public-read --cache-control "max-age=900"
fi
done

0 comments on commit ada7d34

Please sign in to comment.