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
Disable caching in webview #1720
Comments
I am also having this issue. If there is anything you need to help debug this issue, let me know. How I currently reproduce it:
The browser is actually making a request for each image and the web server is responding to the request for each image and sending the image to the browser but the image displayed never changes. Like the original poster I am using cachebuster urls and the |
same problem here |
same problem.. |
👍 |
3 similar comments
+1 |
+1 |
+1 |
Hi,
As per this issue #891 disable chrome BrowserWindow caching, there is a new flag
--disable-http-cache
introduced to disable caching. But it still caches the content in webview.I have a embedded http server running inside the electron app, which renders static html(from the directory ) into the webview. So the process is simple, when the user exits the presentation to open another one, it exits the server and open the http in another directory. But some presentation has the files with the same names & extensions. This led chrome to cache its content.
Another interesting issue i found with webview is, it aggressively caches even if i append a cachebuster string to the url. But the same link with the cachebuster key works fine in the chrome browser(regular mode). So it's an issue in webview only.
So summarize, these are the 2 issues i have encountered regarding webview cache
--disable-http-cache
switchHope i made this clear. Let me know if you need more info.
Cheers
The text was updated successfully, but these errors were encountered: