Skip to content

Commit

Permalink
Fix null pre-fetch cache issue
Browse files Browse the repository at this point in the history
  • Loading branch information
medikoo committed Oct 3, 2012
1 parent faa468b commit e31e498
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions lib/ext/max-age.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,10 +65,12 @@ ext.maxAge = function (maxAge, conf, options) {
clearTimeout(id);
});
cache = {};
forEach(preFetchCache, function (id) {
clearTimeout(id);
});
preFetchCache = {};
if (preFetchCache) {
forEach(preFetchCache, function (id) {
clearTimeout(id);
});
preFetchCache = {};
}
});
}
};

0 comments on commit e31e498

Please sign in to comment.