Skip to content

Commit 928695b

Browse files
committed
fix: ensure config fetches are not cached
1 parent c36210a commit 928695b

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/main.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,12 @@ Vue.use(DayJSPlugin)
1717
Vue.use(FiltersPlugin)
1818

1919
// Load API configuration
20-
fetch('/config.json')
20+
fetch('/config.json', { cache: 'no-store' })
2121
.then(res => res.json())
2222
.then(apiConfig => {
2323
// Commit the api configuration to our store.
2424
store.commit('config/onInitApiConfig', apiConfig)
25-
return fetch(apiConfig.apiUrl + '/server/files/config/' + Globals.SETTINGS_FILENAME)
25+
return fetch(apiConfig.apiUrl + '/server/files/config/' + Globals.SETTINGS_FILENAME, { cache: 'no-store' })
2626
.then(res => (!res.ok) ? undefined : res.json())
2727
.then((fileConfig) => {
2828
// Init the store. This should include any GUI settings we've loaded from moonraker.

0 commit comments

Comments
 (0)