New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
WebContents.loadUrl() without cache #1360
Comments
Chromium didn't expose an API to ignore cache when loading URL, so it is not easy to achieve that. |
Thanks for looking in to it! Can we leave this open in case Chromuim ever implements such an API? |
|
@deepak1556 awesome find! I think we should add it to the docs |
Closing since this was fixed by #3432 |
I added @wv.loadURL(@wv.src, {"extraHeaders" : "pragma: no-cache\n"}) but it is not updating js files included in html , any idea? |
I tried every combination of extraHeader, cache-control:no-cache,no-store etc and expires set to 0 or past time, nothing is working. |
Recently I had some issues too. |
Cached iframe is making it very difficult to develop. Wish I could load fresh. |
Currently there is no option to load content in to a BrowserWindow without loading from the cache. I don't want to disable caching entirely through the
--disable-http-cache
switch as I want to use caching during app use. But I want fresh content to load when starting the app.My current workaround is to load the content using
loadUrl()
and then usereloadIgnoringCache()
to load the un-cached content as soon as it has finished loading. But it feels hacky and the window flickers.Is there a way to not read from the cache initially but still enable caching? Or could it be added by adding a second argument to
loadUrl()
likeloadUrl('http://github.com', ignoreCache)
, or maybe add a function likeloadIgnoringCache(url)
?The text was updated successfully, but these errors were encountered: