add .querystring memoization
This commit is contained in:
parent
261acbde88
commit
d2713418cc
1 changed files with 2 additions and 1 deletions
|
@ -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 || '');
|
||||
},
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue