非常奇怪。在OSX Mavericks上的Chrome 31.0.1650.57上也能够重现。使用宜家链接进行测试,注意到Chrome报告了16028.7天,资源
/us/en/iows/tealium
的延迟为41毫秒。
Charles代理显示以下标头:
HTTP/1.1 304 Not Modified
Content-Type: application/json
Last-Modified: Mon, 18 Nov 2013 18:34:51 GMT
Cache-Control: public, max-age=7200
Date: Sat, 23 Nov 2013 00:32:26 GMT
Connection: keep-alive
Vary: Accept-Encoding
代理应用程序(Charles)报告没有这样奇怪的时间-它显示40毫秒。
lavieenrose.com链接导致Chrome报告
16028.7天的时间,这似乎很常见。
Charles显示:
HTTP/1.1 200 OK
Date: Sat, 23 Nov 2013 00:46:37 GMT
Server: IBM_HTTP_Server
Last-Modified: Tue, 19 Jun 2012 13:05:34 GMT
ETag: "5c487f-1a15-4c2d2f01a0380"
Accept-Ranges: bytes
Vary: Accept-Encoding
Content-Encoding: gzip
Content-Length: 1738
Content-Type: application/x-javascript
我的结论是这不是服务器响应或头文件问题。我认为这是Chromium或WebKit开发工具的问题。
以下是代表由“网络”选项卡呈现的HTTP请求的开发工具JS对象的HEAD:
https://code.google.com/p/chromium/codesearch#chromium/src/third_party/WebKit/Source/devtools/front_end/NetworkRequest.js
我对
set endTime()
中的数学有疑问:
set endTime(x)
{
if (this.timing && this.timing.requestTime) {
this._endTime = Math.max(x, this.responseReceivedTime);
} else {
this._endTime = x;
if (this._responseReceivedTime > x)
this._responseReceivedTime = x;
}
},
目前还没有答案,但也许了解WebKit/Chromium DevTools更多的人会看到这个问题...