mirror of
https://github.com/scratchfoundation/scratch-www.git
synced 2024-11-26 17:16:11 -05:00
Fix cache condition request
The response from the request condition includes fields we don't want to send up with the cache condition
This commit is contained in:
parent
29ea1abd04
commit
ca97838695
1 changed files with 6 additions and 4 deletions
|
@ -153,10 +153,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) {
|
||||
|
|
Loading…
Reference in a new issue