Skip to content

Commit

Permalink
20231124A
Browse files Browse the repository at this point in the history
  • Loading branch information
hugoalh committed Nov 24, 2023
1 parent 037bca2 commit d1d4db0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions exfetch.ts
Original file line number Diff line number Diff line change
Expand Up @@ -553,12 +553,12 @@ export class ExFetch {
if (new URL(input).protocol === "file:") {
return fetch(input, init);
}
const requestCacheOption: RequestCache | undefined = init?.cache;
const requestCacheControl: boolean = this.#allowCache && new URL(input).protocol === "https:" && (
typeof init === "undefined" ||
typeof init.method === "undefined" ||
init.method.toUpperCase() === "GET"
) && init?.cache !== "no-store";
const requestCacheOption: RequestCache | undefined = init?.cache;
) && requestCacheOption !== "no-store";
const requestFuzzy: Request = new Request(input, {
...init,
cache: undefined,
Expand Down

0 comments on commit d1d4db0

Please sign in to comment.