File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change 33version=$( npm pkg get version | sed ' s/"//g' )
44bucket=$1
55
6- aws s3api put-object --bucket $bucket --key " content/$version /cwr.js" --body build/assets/cwr.js
7- aws s3api put-object --bucket $bucket --key " content/$version /LICENSE-THIRD-PARTY" --body LICENSE-THIRD-PARTY
6+ aws s3api put-object --bucket $bucket --key " content/$version /cwr.js" --body build/assets/cwr.js --cache-control max-age=604800
7+ aws s3api put-object --bucket $bucket --key " content/$version /LICENSE-THIRD-PARTY" --body LICENSE-THIRD-PARTY --cache-control max-age=604800
88
99if [[ $version =~ ^[0-9]+\. [0-9]+\. [0-9]+$ ]]
1010then
1111 minorUpdate=$( echo $version | sed -En " s/^([0-9]+\.)[0-9]+\.[0-9]+/\1x/p" )
12- aws s3api put-object --bucket $bucket --key " content/$minorUpdate /cwr.js" --body build/assets/cwr.js
13- aws s3api put-object --bucket $bucket --key " content/$minorUpdate /LICENSE-THIRD-PARTY" --body LICENSE-THIRD-PARTY
12+ aws s3api put-object --bucket $bucket --key " content/$minorUpdate /cwr.js" --body build/assets/cwr.js --cache-control max-age=7200
13+ aws s3api put-object --bucket $bucket --key " content/$minorUpdate /LICENSE-THIRD-PARTY" --body LICENSE-THIRD-PARTY --cache-control max-age=7200
1414 patchUpdate=$( echo $version | sed -En " s/^([0-9]+\.[0-9]+\.)[0-9]+/\1x/p" )
15- aws s3api put-object --bucket $bucket --key " content/$patchUpdate /cwr.js" --body build/assets/cwr.js
16- aws s3api put-object --bucket $bucket --key " content/$patchUpdate /LICENSE-THIRD-PARTY" --body LICENSE-THIRD-PARTY
15+ aws s3api put-object --bucket $bucket --key " content/$patchUpdate /cwr.js" --body build/assets/cwr.js --cache-control max-age=7200
16+ aws s3api put-object --bucket $bucket --key " content/$patchUpdate /LICENSE-THIRD-PARTY" --body LICENSE-THIRD-PARTY --cache-control max-age=7200
1717fi
You can’t perform that action at this time.
0 commit comments