fix: reloadIgnoringCache() should ignore the cache (#21263) (#21284)

This commit is contained in:
Samuel Attard
2019-11-25 13:09:41 -08:00
committed by GitHub
parent 449bdcfda2
commit 67bcc2a972
2 changed files with 8 additions and 1 deletions

View File

@@ -152,7 +152,8 @@ const NavigationController = (function () {
NavigationController.prototype.reloadIgnoringCache = function () {
this.pendingIndex = this.currentIndex
return this.webContents._loadURL(this.getURL(), {
extraHeaders: 'pragma: no-cache\n'
extraHeaders: 'pragma: no-cache\n',
reloadIgnoringCache: true
})
}