From a3f630e55c40d455454f931fdecdea1327e0e473 Mon Sep 17 00:00:00 2001 From: deepak1556 Date: Wed, 8 Apr 2015 12:16:50 +0530 Subject: [PATCH] webContents: workaround reloadIgnoringcache without breaking node integration --- atom/browser/api/atom_api_web_contents.cc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/atom/browser/api/atom_api_web_contents.cc b/atom/browser/api/atom_api_web_contents.cc index 4c76f5349eb5..292bf65232d4 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); }