Update fetchGithub to no-cache
This commit is contained in:
parent
bae5ae2526
commit
a451be460b
1 changed files with 3 additions and 2 deletions
|
|
@ -29,7 +29,7 @@ const parseYaml = data => {
|
||||||
return yaml.safeLoad(data) || {}
|
return yaml.safeLoad(data) || {}
|
||||||
}
|
}
|
||||||
|
|
||||||
export const fetchContent = async (rateLimit = 35) => {
|
export const fetchContent = async (rateLimit = 0) => {
|
||||||
if (!window.localStorage || !window.netlifyIdentity) {
|
if (!window.localStorage || !window.netlifyIdentity) {
|
||||||
return Promise.resolve(null)
|
return Promise.resolve(null)
|
||||||
}
|
}
|
||||||
|
|
@ -54,7 +54,8 @@ export const fetchContent = async (rateLimit = 35) => {
|
||||||
fetch(endpoint, {
|
fetch(endpoint, {
|
||||||
headers: {
|
headers: {
|
||||||
Authorization: `Bearer ${token}`
|
Authorization: `Bearer ${token}`
|
||||||
}
|
},
|
||||||
|
cache: 'no-store'
|
||||||
})
|
})
|
||||||
)
|
)
|
||||||
.then(res => res.json())
|
.then(res => res.json())
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue