我在我的网站中使用“预连接”资源提示作为字体的 api
<link rel="preconnect" crossorigin href="https://fonts.gstatic.com" />
但是,当我在 chrome devtools 中检查瀑布分析https://fonts.gstatic.com/s/roboto/v20/KFOmCnqEu92Fr1Mu4mxKKTU1Kg.woff2
时,获取时的 DNS 查找和 SSL 连接。
当我检查 netlog-viewer.appspot.com 中的网络日志时,HTTP_STREAM_JOB_CONTROLLER
结果如下:
https://fonts.gstatic.com/s/roboto/v20/KFOmCnqEu92Fr1Mu4mxKKTU1Kg.woff2
Start Time: 2020-02-18 12:14:04.660
t=9003 [st= 0] +HTTP_STREAM_JOB_CONTROLLER [dt=123]
--> is_preconnect = false
--> url = "https://fonts.gstatic.com/s/roboto/v20/KFOmCnqEu92Fr1Mu4mxKKTU1Kg.woff2"
t=9003 [st= 0] HTTP_STREAM_JOB_CONTROLLER_BOUND
--> source_dependency = 3231 (URL_REQUEST)
t=9003 [st= 0] +PROXY_RESOLUTION_SERVICE [dt=0]
t=9003 [st= 0] PROXY_RESOLUTION_SERVICE_RESOLVED_PROXY_LIST
--> pac_string = "DIRECT"
t=9003 [st= 0] -PROXY_RESOLUTION_SERVICE
t=9003 [st= 0] HTTP_STREAM_JOB_CONTROLLER_PROXY_SERVER_RESOLVED
--> proxy_server = "DIRECT"
t=9003 [st= 0] HTTP_STREAM_REQUEST_STARTED_JOB
--> source_dependency = 3234 (HTTP_STREAM_JOB)
t=9126 [st=123] -HTTP_STREAM_JOB_CONTROLLER
为什么显示为is_preconnect
假?