From d022457e0c5a2b4bf4cfdf745427d52b2af56c58 Mon Sep 17 00:00:00 2001 From: Chocobo1 Date: Wed, 17 Apr 2019 13:42:52 +0800 Subject: [PATCH] Use force refresh on WebUI logout Regardless of the cache header settings, the logout action should never be allowed to load from cache. --- src/webui/www/private/scripts/mocha-init.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/webui/www/private/scripts/mocha-init.js b/src/webui/www/private/scripts/mocha-init.js index 6ebaefcd4..abd3701f7 100644 --- a/src/webui/www/private/scripts/mocha-init.js +++ b/src/webui/www/private/scripts/mocha-init.js @@ -788,7 +788,7 @@ var initializeWindows = function() { url: 'api/v2/auth/logout', method: 'post', onSuccess: function() { - window.location.reload(); + window.location.reload(true); } }).send(); });