We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5c93ca0 commit a864cd5Copy full SHA for a864cd5
src/Private/RequestHandler.ts
@@ -24,7 +24,7 @@ class RequestHandler {
24
noCache: options?.noCache ?? false,
25
noCacheCheck: options?.noCacheCheck ?? false
26
};
27
- if (options.noCacheCheck && this.client.cacheHandler.has(endpoint)) {
+ if (!options.noCacheCheck && this.client.cacheHandler.has(endpoint)) {
28
const data = this.client.cacheHandler.get(endpoint);
29
return new RequestData(data.data, data.headers, {
30
status: 200,
@@ -71,7 +71,7 @@ class RequestHandler {
71
cached: false
72
});
73
if (options.noCache) return requestData;
74
- if (this.client.options.cache && !options.raw) {
+ if (this.client.options.cache) {
75
this.client.cacheHandler.set(endpoint, requestData);
76
}
77
return requestData;
0 commit comments