Merge pull request #281 from netlify/fix-cache-fetch-issue-on-firefox
Fix firefox fetch issue in GitHub API
This commit is contained in:
commit
fa407a0335
@ -142,7 +142,7 @@ export default class API {
|
|||||||
return this.request(`${ this.repoURL }/contents/${ path }`, {
|
return this.request(`${ this.repoURL }/contents/${ path }`, {
|
||||||
headers: { Accept: "application/vnd.github.VERSION.raw" },
|
headers: { Accept: "application/vnd.github.VERSION.raw" },
|
||||||
params: { ref: branch },
|
params: { ref: branch },
|
||||||
cache: false,
|
cache: "no-store",
|
||||||
}).then((result) => {
|
}).then((result) => {
|
||||||
if (sha) {
|
if (sha) {
|
||||||
LocalForage.setItem(`gh.${ sha }`, result);
|
LocalForage.setItem(`gh.${ sha }`, result);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user