add .querystring memoization

This commit is contained in:
TJ Holowaychuk 2013-08-22 18:07:16 -07:00
parent 261acbde88
commit d2713418cc

View file

@ -193,7 +193,8 @@ module.exports = {
*/
get querystring() {
return parse(this.url).query || '';
var c = this._qscache = this._qscache || {};
return c[this.url] || (c[this.url] = parse(this.url).query || '');
},
/**