"pending" 是什么意思Chrome 开发者窗口中的请求是什么意思? [英] What does "pending" mean for request in Chrome Developer Window?

查看:46
本文介绍了"pending" 是什么意思Chrome 开发者窗口中的请求是什么意思?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Google Chrome 开发者窗口网络"标签中状态栏下的待定"是什么意思?

What does "Pending" mean under the status column in the "Network" tab of Google Chrome Developer window?

当我的页面脚本发出 GET 请求时,会发生这种情况,该请求的响应包含用于下载 CSV 文件的内容标头:

This happens when my page script issues a GET request whose response contains content-headers for downloading a CSV file:

Content-type: text/csv;
Content-Disposition: attachment; filename=myfile.csv

这在 FF 和 IE7 中工作正常,按预期下载 CSV 文件并打开文件选择器以保存文件,但 Chrome 什么也不做.我确认服务器响应了请求,所以 Chrome 似乎不会处理响应.

This works fine in FF and IE7, downloading a CSV file as expected and opening a file picker to save the file, but Chrome does nothing. I confirmed that the server responds to the request, so it appears that Chrome will not process the response.

奇怪的是,如果我在 Chromes 地址栏中输入 URL 并点击 ,一切都按预期工作.

Curiously, all works as expected if I type the URL into Chromes address bar and hit .

仅供参考:Win-XP 上的 Chrome 10.0.648.204

FYI: Chrome 10.0.648.204 on Win-XP

推荐答案

就我而言,我发现待定"状态是由 AdBlock 扩展引起的.我无法加载的图像带有广告"一词.在 URL 中,因此 AdBlock 阻止它加载.

In my case, I found that the "pending" status was caused by the AdBlock extension. The image that I couldn't get to load had the word "ad" in the URL, so AdBlock kept it from loading.

禁用 AdBlock 可解决此问题.

Disabling AdBlock fixes this issue.

重命名文件,使其不包含ad";在 URL 中也修复了它,显然是一个更好的解决方案.除非是广告,否则你应该就这样离开.

Renaming the file so that it doesn't contain "ad" in the URL also fixes it, and is obviously a better solution. Unless it's an advertisement, in which case you should leave it like that.

这篇关于"pending" 是什么意思Chrome 开发者窗口中的请求是什么意思?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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