Skip to content

Commit 95384b7

Browse files
chore: removed cache for getGithubContents
1 parent bf0985d commit 95384b7

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

actions/github/get-contents.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ export const getGithubContents = async ({
2828
Accept: 'application/vnd.github.raw',
2929
Authorization: `Bearer ${process.env.GITHUB_TOKEN}`,
3030
},
31+
cache: 'no-cache',
3132
},
3233
);
3334

lib/fetcher.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ class Fetcher {
1818

1919
if (options?.responseType === 'text') {
2020
const res = await fetch(url, {
21-
cache: options?.cache || 'force-cache',
21+
cache: options?.cache ?? 'force-cache',
2222
headers: options.headers,
2323
});
2424

@@ -32,7 +32,7 @@ class Fetcher {
3232
const fetchOptions = {
3333
method: 'POST',
3434
body: JSON.stringify(options?.body),
35-
cache: options?.cache || 'force-cache',
35+
cache: options?.cache ?? 'force-cache',
3636
headers: options?.headers,
3737
signal: options?.signal,
3838
};

0 commit comments

Comments
 (0)