diff --git a/lib/engine.js b/lib/engine.js index 2c378fa..c4d22c3 100644 --- a/lib/engine.js +++ b/lib/engine.js @@ -352,10 +352,9 @@ exports.fulfill = function ( myRes, ip, bid, callback, gzip, override ) { if ( err ) { api.expires = ( now ); - tout = {}; + tout = _.isUndefined(cachedPart) ? {} : cachedPart; tout.cname = key; tout.expires = api.expires; - tout.result = _.isUndefined(cachedPart) ? {} : cachedPart; tout.fromcache = true; tout.err = err; winston.error('Problem retrieving data for ' + bid + ' from ' + key + ': ' + JSON.stringify(err));