From a451be460b27469a82a2ec4d1808d03ce2d4da20 Mon Sep 17 00:00:00 2001 From: Eric Jinks Date: Fri, 16 Feb 2018 11:54:44 +1000 Subject: [PATCH] Update fetchGithub to no-cache --- src/util/fetch-content.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/util/fetch-content.js b/src/util/fetch-content.js index 50240ab..c7b4b7d 100644 --- a/src/util/fetch-content.js +++ b/src/util/fetch-content.js @@ -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())