Chrome 开发者控制台中的奇怪错误 - 无法加载资源:net::ERR_CACHE_MISS [英] Bizarre Error in Chrome Developer Console - Failed to load resource: net::ERR_CACHE_MISS

查看:95
本文介绍了Chrome 开发者控制台中的奇怪错误 - 无法加载资源:net::ERR_CACHE_MISS的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

据我所知,昨天在 Chrome 上没有抛出这个错误,到今天早上,它是.我没有更改任何浏览器设置.我附上了截图(打开/关闭开发者工具窗口四次后):

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):

此问题与 Stack Overlow 帖子无法加载 Chrome 下的资源 相去甚远,不同之处在于仅在我在 Chrome 中检查元素"时发生.这是我的详细信息:

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:

我尽我所能取消了自昨晚(当时我没有出现此错误)以来所做的一切,但错误仍然存​​在.当我删除所有 PHP 之前的代码时,错误消失.

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.

当我只删除除

<?php session_start(); ?>

错误返回.

由于错误似乎涉及PHP,我查看了我的错误日志,但没有通知,警告,也没有错误.当我关闭开发者工具窗口然后在没有重新加载页面的情况下打开窗口时,错误数量每次增加一个.

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.

当我保持窗口打开,然后重新加载页面时,页面重新加载而不会抛出错误.但是,一旦我再次关闭开发人员工具窗口,然后打开它(不重新加载页面),就会抛出错误.我在启用 Firebug 的情况下在 Firefox 上检查了我的网站,并且没有抛出任何错误,使得这似乎是 Chrome 问题(版本 38).否则,我的网站似乎可以正常运行.设备上通过 Chrome 浏览的其他网站(例如 Yahoo)也会遇到此错误.

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.

此外,自几个月前以来,我没有手动更改任何浏览器设置.作为附加说明,这是我去年在 Chrome 中遇到的第二个奇怪错误(请参阅堆栈溢出问题无法加载资源:net::ERR_NETWORK_IO_SUSPENDED),即使提供了赏金,也没有人能够找到解决方案.

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.

有没有办法防止这个错误,或者这只是浏览器的问题?附带说明一下,当我在 Chrome 中为 StackOverflow 打开 Developer Tools 时,没有抛出任何错误,因此 StackOverflow 不是用 PHP 编码的,或者他们有办法防止此错误.我认为我的网站没有受到影响,但我不是 100% 确定,这让我很紧张 :)

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 :)

推荐答案

根据 开发人员,此错误不是实际故障,而是误导性错误报告".此错误已在版本 40 中修复,该版本 可在 Canary 和截至 10 月 25 日的开发频道.

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.

补丁

这篇关于Chrome 开发者控制台中的奇怪错误 - 无法加载资源:net::ERR_CACHE_MISS的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆