简体   繁体   English

发送两个404文件请求

[英]Sending two request for a 404 file

<script type="text/javascript" src="empty.js"></script>
<script type="text/javascript" src="no-file"></script>
<?php highlight_file(__FILE__); ?>

The page can be viewed in browser as given below. 可以在浏览器中查看该页面,如下所示。 在此处输入图片说明 The firebug says that they send two request for the file "no-file". 萤火虫说,他们发送了两个“ no-file”文件请求。

I just removed the first script-tag. 我刚刚删除了第一个脚本标签。 That time, they are sending only one request for the "no-file" 那时,他们只发送一个“无文件”请求
why are they sending two request for a 404 file? 他们为什么要发送两个404文件请求?

NB: There is no file with the name "no-file" in my system and the "empty.js" is an empty file. 注意:我的系统中没有名为“ no-file”的文件,而“ empty.js”是空文件。

There is no good reason for it, other than it being a bug. 除了它是一个错误之外,没有充分的理由。 More details here: 此处有更多详细信息:

https://bugzilla.mozilla.org/show_bug.cgi?id=648568 https://bugzilla.mozilla.org/show_bug.cgi?id=648568

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM