From 707330e501517e87a2d02a1690bbca1e8dbbcdf7 Mon Sep 17 00:00:00 2001 From: Stefan Dej Date: Tue, 4 Aug 2020 00:17:58 +0200 Subject: [PATCH] bugfix: add timestamp to gui.json for caching problems Signed-off-by: Stefan Dej --- src/store/actions.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/store/actions.js b/src/store/actions.js index 81d9fba5..a7099199 100644 --- a/src/store/actions.js +++ b/src/store/actions.js @@ -74,7 +74,7 @@ export default { getDirectoryRoot({ commit }, data) { if (data.files && data.files.filter((file) => file.filename === "gui.json")) { - fetch('http://'+store.state.socket.hostname+':'+store.state.socket.port+'/server/files/gcodes/gui.json') + fetch('http://'+store.state.socket.hostname+':'+store.state.socket.port+'/server/files/gcodes/gui.json?time='+Date.now()) .then(res => res.json()).then(file => { commit('setSettings', file); });