ChatGPT解决这个技术问题 Extra ChatGPT

Bizarre Error in Chrome Developer Console - Failed to load resource: net::ERR_CACHE_MISS

As far as I can tell, this error was not being thrown yesterday on Chrome, and as of this morning, it is. I have not changed any of my browser settings. I have attached a screenshot (after opening/closing Developer Tools window four times):

https://i.stack.imgur.com/PF8gF.png

This issue is tangentially similar to Stack Overlow post Failed to load resource under Chrome except that it only occurs when I "Inspect Element" in Chrome. Here are the details I have:

To the best of my ability I undid everything I did since last night (when I did not have this error) and the error persists. When I remove all pre-<html> PHP code, the error disappears.

When I only remove all the pre-<html> PHP code except

<?php session_start(); ?>

the error returns.

Since the error seems to involve PHP, I checked my error log, but there are no notices, warnings, nor errors. When I close the Developer Tools window and then open up the window without a page reload, the number of errors increments by one each time.

When I keep the window open, and then reload the page, the page reloads without throwing the error. However, as soon as I close the Developer tools window again, then open it (no page reload), the error is thrown. I checked my site on Firefox with Firebug enabled, and no errors are thrown, making it seem like a Chrome issue (version 38). My site seems to function normally otherwise. Other sites on device browsed via Chrome (for example, Yahoo) also experience this error.

Also, I have not manually changed any of my browser settings since months ago. As an additional note, this is the second strange error I have encountered in Chrome in the last year (see Stack Overflow question Failed to load resource: net::ERR_NETWORK_IO_SUSPENDED), to which no one was able to find a solution, even with a bounty offered.

Is there a way to prevent this error, or is this a browser-only issue? On a side note, when I open up Developer Tools in Chrome for Stack Overflow, there is no error thrown, so either Stack Overflow is not coded in PHP or they have a way to prevent this error. I think my site is not affected, but I am not 100% sure, and it makes me nervous :)

hmm i have noticed this too and read somewhere that the adblock extension is causing it.haven't noticed smth wrong though, everything works as intended, even when the error appears.
I'm not using adBlock at work, and the chrome nightly is throwing the same error.
I've also started seeing this the other day. I'm not certain, but believe it coincided with upgrading to 38.0.2125.104.
We see the same thing on our site and on facebook.com as well. It appears to be just a bug in Chrome that occurs only when you use the dev tools. So far haven't seen any ill effects besides the error message printing.

C
Curtis Mattoon

Per the developers, this error is not an actual failure, but rather "misleading error reports". This bug is fixed in version 40, which is available on the canary and dev channels as of 25 Oct.

Patch


This thing makes my chrome slow. How could i update to version 40? My chrome says "Version 39.0.2171.71 m" and it is up to date?
Chrome 40 was released on beta yesterday: googlechromereleases.blogspot.com You'll want to switch to the beta channel: chromium.org/getting-involved/dev-channel
Chrome 40 was officially released and I can confirm that it fixes this error.
P
Peter Mortensen

On Chrome's latest update (38.0.2125.104 m at the moment), Google added the option to know whether the files loaded to the website were newly downloaded from the server - or read from the local cache.

When an error like yours "hits" the console - you know the files were just downloaded from the server and not read from the local cache. You can recreate this error by clicking Ctrl + F5 (refresh and erase cache).

It fits your description where Firebug (or equivalents) doesn't fire any errors to the console - whilst Chrome does.

So, the bottom line is - your're just fine and you can ignore this error - it's merely an indicator.


The error is only reproducible when console is not open. So it somehow is relevant to the console component as well. And you DON'T need to use ctrl+f5 to reproduce it - it's reproducible on facebook every time you load it as soon as dev console is closed. So your answer barely explains the observed behaviour
" Google added the option to know whether the files loaded to the website were newly downloaded from the server - or read from the local cache. " ----> I'm almost 100% sure you could do this before the latest update by clicking Inspect Element --> Network, then inspecting the Size column
Actually, in my case, the Outlook.com website seems to be not working because of this. If I open an Incognito window, it works.
FWIW, an HTTP 302 vs 200 status would also be an indicator.
r
rmirabelle

Check to see if you have previously disabled caching in Chrome when the developer console is open - the setting is under the console, settings icon > General tab: Disable cache (while DevTools is open)


I just checked to make sure, but no, the Disable cache option was/is not selected
C
Community

Check for the presence of words like "ad", "banner" or "popup" within your file. I removed these and it worked. Based on this post here: Failed to load resource under Chrome it seems like Ad Block Plus was the culprit in my case.


J
JDandChips

See if you can recreate the issue in an Incognito tab. If you find that the problem no longer occurs then I would recommend you go through your extensions, perhaps disabling them one at a time. This is commonly the cause as touched on by Nikola


I checked that after a user made the incognito suggestion (see comment above by Decypher)....the error is still there
K
KevinAdu

I had issues getting through a form because of this error.

I used Ctrl+Click to click the submit button and navigate through the form as usual.