禁用缓存时,浏览器控制台中有大量404错误

时间:2017-02-16 12:56:48

标签: angularjs caching google-chrome-devtools browser-cache

我们在将新网站部署到暂存时不会发生的生产环境时遇到了一个非常奇怪的问题。

Chrome和& Firefox如果我们打开了开发人员工具箱,并且设置为在浏览器缓存打开时禁用它,我们会在控制台选项卡中收到一堆404错误。

404错误是图像和图像的混合。来自同一域的ajax请求。所有其他资源,图像,字体,CDN,来自其他域的ajax JSON对象加载正常。

当我们允许使用开发工具箱的缓存打开或关闭开发工具箱时,问题就会消失,一切都很好。所以这不是一个重大问题,但我很好奇可能导致它的原因。

之前有没有人遇到这样的事情?或者他们对如何调试它有什么想法?

顺便说一句,我们的网络应用程序是使用AngularJS构建的,但问题出现在未使用角度来获取src

的图像上

谢谢!

更新

这些是我在浏览器控制台中看到的错误消息:

GET http://example.com/data.service/-/action/getA/12345-G 404 (Not Found)
(anonymous) @ angular.js:12185
n @ angular.js:11947
(anonymous) @ angular.js:11742
(anonymous) @ angular.js:16606
$eval @ angular.js:17913
$digest @ angular.js:17727
$apply @ angular.js:18021
l @ angular.js:12002
D @ angular.js:12211
w.onload @ angular.js:12139
GET http://example.com/data.service/-/action/get/67891-G 404 (Not Found)
(anonymous) @ angular.js:12185
n @ angular.js:11947
(anonymous) @ angular.js:11742
(anonymous) @ angular.js:16606
$eval @ angular.js:17913
$digest @ angular.js:17727
$apply @ angular.js:18021
l @ angular.js:12002
D @ angular.js:12211
w.onload @ angular.js:12139
GET http://example.com/export.media/-/action/getLogo/format/id/123qwe 404 (Not Found)
GET http://example.com/export.media/-/action/getLogo/format/id/456asd 404 (Not Found)
GET http://example.com/export.media/-/action/getLogo/format/id/789zxc 404 (Not Found)

enter image description here

0 个答案:

没有答案