什么是“未决”?在Chrome开发者窗口中请求意味着什么? [英] What does "pending" mean for request in Chrome Developer Window?

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

问题描述

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



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

 内容类型:text / csv; 
内容处置:附件;文件名= myfile.csv

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



奇怪的是,如果我在URL中输入Chromes地址bar和hit。

FYI:Win-XP上的Chrome 10.0.648.204

解决方案

就我而言,我发现(经过多次拉动)未决状态是由AdBlock扩展引起的。我无法加载的图片在网址中有ad字样,AdBlock不让它加载。



禁用AdBlock修复了这个问题。

p>

重命名文件以使其不包含网址中的广告也修复了该问题,显然是更好的解决方案。除非是广告,否则你应该这样离开。 :)

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

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

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.

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

FYI: Chrome 10.0.648.204 on Win-XP

解决方案

In my case, I found (after much hair-pulling) 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.

Disabling AdBlock fixes this issue.

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

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

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