aboutsummaryrefslogtreecommitdiff
path: root/files/zh-cn/glossary/第一字节时间
diff options
context:
space:
mode:
authorPeter Bengtsson <mail@peterbe.com>2020-12-08 14:40:17 -0500
committerPeter Bengtsson <mail@peterbe.com>2020-12-08 14:40:17 -0500
commit33058f2b292b3a581333bdfb21b8f671898c5060 (patch)
tree51c3e392513ec574331b2d3f85c394445ea803c6 /files/zh-cn/glossary/第一字节时间
parent8b66d724f7caf0157093fb09cfec8fbd0c6ad50a (diff)
downloadtranslated-content-33058f2b292b3a581333bdfb21b8f671898c5060.tar.gz
translated-content-33058f2b292b3a581333bdfb21b8f671898c5060.tar.bz2
translated-content-33058f2b292b3a581333bdfb21b8f671898c5060.zip
initial commit
Diffstat (limited to 'files/zh-cn/glossary/第一字节时间')
-rw-r--r--files/zh-cn/glossary/第一字节时间/index.html20
1 files changed, 20 insertions, 0 deletions
diff --git a/files/zh-cn/glossary/第一字节时间/index.html b/files/zh-cn/glossary/第一字节时间/index.html
new file mode 100644
index 0000000000..8bcc8f0ce9
--- /dev/null
+++ b/files/zh-cn/glossary/第一字节时间/index.html
@@ -0,0 +1,20 @@
+---
+title: 第一字节时间
+slug: Glossary/第一字节时间
+translation_of: Glossary/time_to_first_byte
+---
+<p><strong>第一字节时间</strong>(TTFB)是指从浏览器请求页面到从浏览器接收来自服务器发送的信息的第一个字节的时间。这一次包括DNS查找和使用(三次)<a href="/en-US/docs/Glossary/TCP">TCP</a>握手和<a href="/en-US/docs/Glossary/SSL_Glossary">SSL</a>握手建立连接(如果请求是通过<a href="https://wiki.developer.mozilla.org/en-US/docs/Glossary/https">https</a>发出的)。</p>
+
+
+
+<p>TTFB是从请求开始到响应开始之间所用的时间,以毫秒为单位:</p>
+
+<pre class="notranslate">TTFB = <a href="/en-US/docs/Web/API/PerformanceResourceTiming/responseStart">responseStart</a> - <a href="/en-US/docs/Web/API/PerformanceResourceTiming/requestStart">requestStart</a></pre>
+
+<h2 id="See_Also">See Also:</h2>
+
+<ul>
+ <li><a href="/en-US/docs/Web/HTTP/Session">A typical HTTP session</a></li>
+ <li><a href="/en-US/docs/Web/API/PerformanceResourceTiming">PerformanceResourceTiming</a></li>
+ <li><a href="/en-US/docs/Web/API/PerformanceTiming">PerformanceTiming</a></li>
+</ul>