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) || {}
|
||||
}
|
||||
|
||||
export const fetchContent = async (rateLimit = 35) => {
|
||||
export const fetchContent = async (rateLimit = 0) => {
|
||||
if (!window.localStorage || !window.netlifyIdentity) {
|
||||
return Promise.resolve(null)
|
||||
}
|
||||
|
|
@ -54,7 +54,8 @@ export const fetchContent = async (rateLimit = 35) => {
|
|||
fetch(endpoint, {
|
||||
headers: {
|
||||
Authorization: `Bearer ${token}`
|
||||
}
|
||||
},
|
||||
cache: 'no-store'
|
||||
})
|
||||
)
|
||||
.then(res => res.json())
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue