fix(core): update
This commit is contained in:
@@ -102,7 +102,7 @@ export class WebRequest {
|
||||
}
|
||||
let cachedResponseDeferred = plugins.smartpromise.defer<Response>();
|
||||
let cacheUsed = false;
|
||||
if (optionsArg.useCache && this.cacheStore.check(urlArg)) {
|
||||
if (optionsArg.useCache && await this.cacheStore.check(urlArg)) {
|
||||
const responseBuffer: ArrayBuffer = await this.cacheStore.get(urlArg);
|
||||
cachedResponseDeferred.resolve(new Response(responseBuffer, {}));
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user