Merge pull request #281 from netlify/fix-cache-fetch-issue-on-firefox

Fix firefox fetch issue in GitHub API
This commit is contained in:
Mathias Biilmann 2017-03-15 00:08:11 -07:00 committed by GitHub
commit fa407a0335

View File

@ -142,7 +142,7 @@ export default class API {
return this.request(`${ this.repoURL }/contents/${ path }`, {
headers: { Accept: "application/vnd.github.VERSION.raw" },
params: { ref: branch },
cache: false,
cache: "no-store",
}).then((result) => {
if (sha) {
LocalForage.setItem(`gh.${ sha }`, result);