Update fetchGithub to no-cache

This commit is contained in:
Eric Jinks 2018-02-16 11:54:44 +10:00
parent bae5ae2526
commit a451be460b

View file

@ -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())