mirror of https://github.com/status-im/consul.git
Re-enable soft purging, stale-if-error
This commit is contained in:
parent
ab6c49ab4c
commit
4f67e80a2a
|
@ -59,7 +59,7 @@ if [ -z "$NO_UPLOAD" ]; then
|
||||||
--acl-public \
|
--acl-public \
|
||||||
--recursive \
|
--recursive \
|
||||||
--add-header="Cache-Control: max-age=14400" \
|
--add-header="Cache-Control: max-age=14400" \
|
||||||
--add-header="x-amz-meta-surrogate-control: max-age=31536000" \
|
--add-header="x-amz-meta-surrogate-control: max-age=31536000, stale-white-revalidate=86400, stale-if-error=604800" \
|
||||||
--add-header="x-amz-meta-surrogate-key: site-$PROJECT" \
|
--add-header="x-amz-meta-surrogate-key: site-$PROJECT" \
|
||||||
sync "$DIR/build/" "s3://hc-sites/$PROJECT/latest/"
|
sync "$DIR/build/" "s3://hc-sites/$PROJECT/latest/"
|
||||||
|
|
||||||
|
@ -103,6 +103,7 @@ if [ -z "$NO_PURGE" ]; then
|
||||||
--request "POST" \
|
--request "POST" \
|
||||||
--header "Accept: application/json" \
|
--header "Accept: application/json" \
|
||||||
--header "Fastly-Key: $FASTLY_API_KEY" \
|
--header "Fastly-Key: $FASTLY_API_KEY" \
|
||||||
|
--header "Fastly-Soft-Purge: 1" \
|
||||||
"https://api.fastly.com/service/$FASTLY_SERVICE_ID/purge/site-$PROJECT"
|
"https://api.fastly.com/service/$FASTLY_SERVICE_ID/purge/site-$PROJECT"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue