From 3d02733511b759f38ef0ad4ce30a28d0c5398a27 Mon Sep 17 00:00:00 2001 From: Daniel Lando Date: Fri, 19 Jan 2024 09:33:14 +0100 Subject: [PATCH] fix: be sure reload doesn't hit the cache --- src/App.vue | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/App.vue b/src/App.vue index 8b06bf8a25a..4a90382b414 100644 --- a/src/App.vue +++ b/src/App.vue @@ -416,6 +416,7 @@ import { InclusionState, } from 'zwave-js/safe' import DialogNodesManager from '@/components/dialogs/DialogNodesManager.vue' +import { uuid } from './lib/utils' let socketQueue = [] @@ -1128,7 +1129,8 @@ export default { // needed to fix external auth issues #3427 const statusCode = error.response?.status if ([302, 401].includes(statusCode)) { - location.reload() + // reload current page, be sure this doesn't hits cache, add a random query param + location.search = `?auth=${uuid()}` return } setTimeout(() => (this.error = error.message), 1000)