webContents: workaround reloadIgnoringcache without breaking node integration
authordeepak1556 <hop2deep@gmail.com>
Wed, 8 Apr 2015 06:46:50 +0000 (12:16 +0530)
committerdeepak1556 <hop2deep@gmail.com>
Mon, 13 Apr 2015 05:33:16 +0000 (11:03 +0530)
atom/browser/api/atom_api_web_contents.cc

index 4c76f53..292bf65 100644 (file)
@@ -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);
 }