You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
As per this issue #891disable 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
webview still caches even if there is a --disable-http-cache switch
It caches even with the cachebuster query string in the url
Hope i made this clear. Let me know if you need more info.
Cheers
Reacted by Gregor MacLennan, Ed McManus, Adam Brown, Michael Mayr, EFEX, Jordan Last, Ramesh Vel, Matias , Dick Visser, Nate Wienert and 6 more
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:
I load up my electron app for the first time which requests images from an embedded web server.
I close my electron app.
I alter the image assets.
I open the electron app again and observe that the images shown are always the images that were loaded on the first load of the app.
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 --disable-http-cache switch.
Activity
NoxHarmonium commentedon May 24, 2015
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
--disable-http-cacheswitch.rubenmoor commentedon Aug 11, 2015
same problem here
swimyoung commentedon Oct 23, 2015
same problem..
darky commentedon Jan 7, 2016
👍
mzmousa commentedon Jun 15, 2016
+1
dotdotcommadot commentedon Jun 28, 2016
+1
Ascarbek commentedon Jul 1, 2016
+1