Merge pull request #2678 from limonspb/presets_cache_fix

Presets fix: remove cache for fetch
10.8-maintenance
Ivan Efimov 2021-12-08 02:13:08 -06:00 committed by GitHub
commit 460b7b51d3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -12,7 +12,7 @@ class PresetsRepoIndexed {
}
loadIndex() {
return fetch(this._urlRaw + "index.json")
return fetch(this._urlRaw + "index.json", {cache: "no-cache"})
.then(res => res.json())
.then(out => this._index = out);
}
@ -205,7 +205,7 @@ class PresetsRepoIndexed {
_loadPresetText(fullUrl) {
return new Promise((resolve, reject) => {
fetch(fullUrl)
fetch(fullUrl, {cache: "no-cache"})
.then(res => res.text())
.then(text => resolve(text))
.catch(err => {