mirror of
https://github.com/scratchfoundation/scratch-www.git
synced 2024-11-22 15:17:53 -05:00
Remove setBucketNameHeader
Missed this one – it’s now covered in the custom vcl
This commit is contained in:
parent
51036209f2
commit
905fe8ac10
1 changed files with 0 additions and 13 deletions
|
@ -69,19 +69,6 @@ async.auto({
|
|||
var ttlCondition = fastlyConfig.setResponseTTL(passStatement);
|
||||
fastly.setCustomVCL(results.version, 'fetch-condition', ttlCondition, cb);
|
||||
}],
|
||||
setBucketNameHeader: ['version', 'notPassRequestCondition', function (cb, results) {
|
||||
var header = {
|
||||
name: BUCKET_NAME_HEADER_NAME,
|
||||
action: 'set',
|
||||
ignore_if_set: 0,
|
||||
type: 'REQUEST',
|
||||
dst: 'http.host',
|
||||
src: '"' + S3_BUCKET_NAME + '"',
|
||||
request_condition: results.notPassRequestCondition.name,
|
||||
priority: 1
|
||||
};
|
||||
fastly.setFastlyHeader(results.version, header, cb);
|
||||
}],
|
||||
appRouteRequestConditions: ['version', function (cb, results) {
|
||||
var conditions = {};
|
||||
async.forEachOf(routes, function (route, id, cb2) {
|
||||
|
|
Loading…
Reference in a new issue