MicrosoftEdge / MicrosoftEdge/WebView2Feedback

Failed to load resource ERR_CACHE_READ_FAILURE

Open
#2,457 19 comments 0 reactions 1 assignee View on GitHub

@LiangTheDev is already working on this.

Since Aug 1, 2023.

bug tracked
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

AB#41945464

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.