File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -28,6 +28,7 @@ export const getGithubContents = async ({
28
28
Accept : 'application/vnd.github.raw' ,
29
29
Authorization : `Bearer ${ process . env . GITHUB_TOKEN } ` ,
30
30
} ,
31
+ cache : 'no-cache' ,
31
32
} ,
32
33
) ;
33
34
Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ class Fetcher {
18
18
19
19
if ( options ?. responseType === 'text' ) {
20
20
const res = await fetch ( url , {
21
- cache : options ?. cache || 'force-cache' ,
21
+ cache : options ?. cache ?? 'force-cache' ,
22
22
headers : options . headers ,
23
23
} ) ;
24
24
@@ -32,7 +32,7 @@ class Fetcher {
32
32
const fetchOptions = {
33
33
method : 'POST' ,
34
34
body : JSON . stringify ( options ?. body ) ,
35
- cache : options ?. cache || 'force-cache' ,
35
+ cache : options ?. cache ?? 'force-cache' ,
36
36
headers : options ?. headers ,
37
37
signal : options ?. signal ,
38
38
} ;
You can’t perform that action at this time.
0 commit comments