Skip to content

Commit 460b7b5

Browse files
author
Ivan Efimov
authored
Merge pull request #2678 from limonspb/presets_cache_fix
Presets fix: remove cache for fetch
2 parents b2e12ef + 83de02f commit 460b7b5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/tabs/presets/PresetsRepoIndexed/PresetsRepoIndexed.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ class PresetsRepoIndexed {
1212
}
1313

1414
loadIndex() {
15-
return fetch(this._urlRaw + "index.json")
15+
return fetch(this._urlRaw + "index.json", {cache: "no-cache"})
1616
.then(res => res.json())
1717
.then(out => this._index = out);
1818
}
@@ -205,7 +205,7 @@ class PresetsRepoIndexed {
205205

206206
_loadPresetText(fullUrl) {
207207
return new Promise((resolve, reject) => {
208-
fetch(fullUrl)
208+
fetch(fullUrl, {cache: "no-cache"})
209209
.then(res => res.text())
210210
.then(text => resolve(text))
211211
.catch(err => {

0 commit comments

Comments
 (0)