Browse Source
Merge pull request #1674 from meriadec/LL-559
Clear HTTP cache at app boot
gre-patch-1
Gaëtan Renaudeau
6 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
5 additions and
0 deletions
-
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)) |
|
|
|
} |
|
|
|