mirror of
https://github.com/scratchfoundation/scratch-www.git
synced 2024-11-27 09:35:56 -05:00
Merge pull request #522 from rschamp/bugfix/cache-condition
[Develop] Fix cache condition request
This commit is contained in:
commit
878bdcb8d2
1 changed files with 6 additions and 4 deletions
|
@ -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) {
|
||||||
|
|
Loading…
Reference in a new issue