File tree Expand file tree Collapse file tree 2 files changed +7
-2
lines changed
Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -27,8 +27,12 @@ class RequestHandler {
2727 }
2828
2929 async request ( endpoint : string , options ?: RequestOptions ) : Promise < RequestData > {
30- options = { raw : options ?. raw ?? false , noCache : options ?. noCache ?? false } ;
31- if ( this . client . cacheHandler . has ( endpoint ) ) {
30+ options = {
31+ raw : options ?. raw ?? false ,
32+ noCache : options ?. noCache ?? false ,
33+ noCacheCheck : options ?. noCacheCheck ?? false
34+ } ;
35+ if ( options . noCacheCheck && this . client . cacheHandler . has ( endpoint ) ) {
3236 const data = this . client . cacheHandler . get ( endpoint ) ;
3337 return new RequestData ( data . data , data . headers , {
3438 status : 200 ,
Original file line number Diff line number Diff line change 33export interface RequestOptions {
44 raw ?: boolean ;
55 noCache ?: boolean ;
6+ noCacheCheck ?: boolean ;
67}
You can’t perform that action at this time.
0 commit comments