From: deepak1556 Date: Wed, 8 Apr 2015 06:46:50 +0000 (+0530) Subject: webContents: workaround reloadIgnoringcache without breaking node integration X-Git-Tag: v0.24.0~8^2 X-Git-Url: http://git.khamidou.com/?a=commitdiff_plain;h=a3f630e55c40d455454f931fdecdea1327e0e473;p=electron.git webContents: workaround reloadIgnoringcache without breaking node integration --- diff --git a/atom/browser/api/atom_api_web_contents.cc b/atom/browser/api/atom_api_web_contents.cc index 4c76f534..292bf652 100644 --- a/atom/browser/api/atom_api_web_contents.cc +++ b/atom/browser/api/atom_api_web_contents.cc @@ -387,6 +387,9 @@ void WebContents::Reload(const mate::Dictionary& options) { } void WebContents::ReloadIgnoringCache(const mate::Dictionary& options) { + // Hack to remove pending entries that ignores cache and treated as a fresh + // load. + web_contents()->GetController().ReloadIgnoringCache(false); Reload(options); }