web_contents()->Stop();
}
-void WebContents::ReloadIgnoringCache() {
- web_contents()->GetController().ReloadIgnoringCache(false);
-}
-
void WebContents::GoBack() {
atom::AtomBrowserClient::SuppressRendererProcessRestartForOnce();
web_contents()->GetController().GoBack();
.SetMethod("isLoading", &WebContents::IsLoading)
.SetMethod("isWaitingForResponse", &WebContents::IsWaitingForResponse)
.SetMethod("_stop", &WebContents::Stop)
- .SetMethod("_reloadIgnoringCache", &WebContents::ReloadIgnoringCache)
.SetMethod("_goBack", &WebContents::GoBack)
.SetMethod("_goForward", &WebContents::GoForward)
.SetMethod("_goToOffset", &WebContents::GoToOffset)
@webContents._loadURL @getURL(), {}
reloadIgnoringCache: ->
- @webContents._reloadIgnoringCache() # Rely on WebContents to clear cache.
- @reload()
+ @pendingIndex = @currentIndex
+ @webContents._loadURL @getURL(), {extraHeaders: "pragma: no-cache\n"}
canGoBack: ->
@getActiveIndex() > 0