MicrosoftEdge / MicrosoftEdge/WebView2Feedback
Failed to load resource ERR_CACHE_READ_FAILURE
@LiangTheDev is already working on this.
Since Aug 1, 2023.
- Dominant language
- PowerShell
- Stars
- 526
- Forks
- 67
- PR merge metrics
- No merged PRs in 30d
Description
Hello,
I sometimes (not reproducible) get a half loaded page. Looking at the devtools console I get the following message:
Failed to load resource: net::ERR_CACHE_READ_FAILURE
I did some searching, and found this to be happening with other chrome/chromium systems also. Advise was to set the enable-simple-cache-backend to true. Can I do this in webview2?
Another interesting option / workaround I read could be found on the essential objects, in there webviewEO product:
void webViewEO_ConsoleMessage(object sender, ConsoleMessageEventArgs e){
if (e.Type == ConsoleMessageType.Network && e.Message.Contains("ERR_CACHE_READ_FAILURE"))
{
this.webViewEO.StopLoad();
this.webViewEO.Reload(true); //force reload cache
}
}
Does webview2 has something similar: an event for looking at the console messages, so I could load the page again?
Finally, why does this happen?
Thanks
Paul
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.