diff options
author | Artyom Liou <10079456+artyomliou@users.noreply.github.com> | 2021-04-27 22:35:32 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-04-27 22:35:32 +0800 |
commit | a7659087cce7e83e05f0cf725333bc98a7086cff (patch) | |
tree | ea5a4561f45f9509c40321b1f432cd43834b2fa1 /files/zh-tw/web/http | |
parent | 669817dd790452f7622567e70fec7a4175f4ce2e (diff) | |
download | translated-content-a7659087cce7e83e05f0cf725333bc98a7086cff.tar.gz translated-content-a7659087cce7e83e05f0cf725333bc98a7086cff.tar.bz2 translated-content-a7659087cce7e83e05f0cf725333bc98a7086cff.zip |
Initial web/http/headers/age (zh-TW translation) (#664)
Diffstat (limited to 'files/zh-tw/web/http')
-rw-r--r-- | files/zh-tw/web/http/headers/age/index.html | 77 |
1 files changed, 77 insertions, 0 deletions
diff --git a/files/zh-tw/web/http/headers/age/index.html b/files/zh-tw/web/http/headers/age/index.html new file mode 100644 index 0000000000..adf9feae48 --- /dev/null +++ b/files/zh-tw/web/http/headers/age/index.html @@ -0,0 +1,77 @@ +--- +title: Age +slug: Web/HTTP/Headers/Age +tags: +- Caching +- HTTP +- Response +- header +--- +<div>{{HTTPSidebar}}</div> + +<p><code><strong>Age</strong></code> 標頭代表資源進到代理快取後,經過了幾秒。</p> + +<p><code>Age</code> 標頭通常接近 0。如果你拿到 <code>Age: 0</code> 代表資源剛剛才從後端伺服器抓進來; + 不然通常會是快取當下與回應中 {{HTTPHeader("Date")}} 標頭的時間差。</p> + +<table class="properties"> + <tbody> + <tr> + <th scope="row">Header type</th> + <td>{{Glossary("Response header")}}</td> + </tr> + <tr> + <th scope="row">{{Glossary("Forbidden header name")}}</th> + <td>no</td> + </tr> + </tbody> +</table> + +<h2 id="Syntax">語法</h2> + +<pre class="brush: html">Age: <秒數差> +</pre> + +<h2 id="Directives">指令</h2> + +<dl> + <dt><秒數差></dt> + <dd> + <p>正整數,代表資源在代理快取放幾秒了。</p> + </dd> +</dl> + +<h2 id="Examples">範例</h2> + +<pre>Age: 24</pre> + +<h2 id="Specifications">Specifications</h2> + +<table class="standard-table"> + <tbody> + <tr> + <th scope="col">Specification</th> + <th scope="col">Title</th> + </tr> + <tr> + <td>{{RFC("7234", "Age", "5.1")}}</td> + <td>Hypertext Transfer Protocol (HTTP/1.1): Caching</td> + </tr> + </tbody> +</table> + +<h2 id="Browser_compatibility">Browser compatibility</h2> + +<p class="hidden">The compatibility table in this page is generated from structured data. + If you'd like to contribute to the data, please check out <a + href="https://github.com/mdn/browser-compat-data">https://github.com/mdn/browser-compat-data</a> + and send us a pull request.</p> + +<p>{{Compat("http.headers.Age")}}</p> + +<h2 id="See_also">See also</h2> + +<ul> + <li>{{HTTPHeader("Cache-Control")}}</li> + <li>{{HTTPHeader("Expires")}}</li> +</ul> |