From 5d583eccd4a627629cc7a195a3fe29025b338d54 Mon Sep 17 00:00:00 2001 From: meriadec Date: Wed, 28 Nov 2018 14:49:26 +0100 Subject: [PATCH] Clear HTTP cache at app boot fixes LL-559 --- src/main/app.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/main/app.js b/src/main/app.js index 272b0e40..6d354e68 100644 --- a/src/main/app.js +++ b/src/main/app.js @@ -173,4 +173,9 @@ app.on('ready', async () => { Menu.setApplicationMenu(menu) mainWindow = await createMainWindow() + await clearSessionCache(mainWindow.webContents.session) }) + +function clearSessionCache(session) { + return new Promise(r => session.clearCache(r)) +}