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) { passCacheCondition: ['version', 'passRequestCondition', function (cb, results) {
var condition = defaults( var condition = {
{name: PASS_CACHE_CONDITION_NAME, type: 'CACHE'}, name: PASS_CACHE_CONDITION_NAME,
results.passRequestCondition type: 'CACHE',
); statement: results.passRequestCondition.statement,
priority: results.passRequestCondition.priority
};
fastly.setCondition(results.version, condition, cb); fastly.setCondition(results.version, condition, cb);
}], }],
passCacheSettingsCondition: ['version', 'passCacheCondition', function (cb, results) { passCacheSettingsCondition: ['version', 'passCacheCondition', function (cb, results) {