Merge pull request #522 from rschamp/bugfix/cache-condition

[Develop] Fix cache condition request
This commit is contained in:
Ray Schamp 2016-05-27 14:21:58 -04:00
commit 878bdcb8d2

View file

@ -166,10 +166,12 @@ async.auto({
);
}],
passCacheCondition: ['version', 'passRequestCondition', function (cb, results) {
var condition = defaults(
{name: PASS_CACHE_CONDITION_NAME, type: 'CACHE'},
results.passRequestCondition
);
var condition = {
name: PASS_CACHE_CONDITION_NAME,
type: 'CACHE',
statement: results.passRequestCondition.statement,
priority: results.passRequestCondition.priority
};
fastly.setCondition(results.version, condition, cb);
}],
passCacheSettingsCondition: ['version', 'passCacheCondition', function (cb, results) {