Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: A1lo <[email protected]>
  • Loading branch information
Dr-XYZ and yin1999 authored Jan 21, 2025
1 parent 5d760c1 commit 656678e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions files/zh-tw/web/http/headers/accept-ch/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ l10n:

{{HTTPSidebar}}{{securecontext_header}}

HTTP **`Accept-CH`** {{Glossary("response header")}} 可以由伺服器設定,以指定用戶在後續請求中應包含哪些[用戶提示](/zh-TW/docs/Web/HTTP/Client_hints)標頭。為了確保用戶提示能夠可靠地傳送, `Accept-CH` 標頭應該為所有安全請求保持持久
HTTP **`Accept-CH`** {{Glossary("response header", "回應標頭")}}可以由伺服器設定,以指定用戶在後續請求中應包含哪些[用戶端提示](/zh-TW/docs/Web/HTTP/Client_hints)標頭。為了確保用戶端提示能夠可靠地傳送,應該對所有安全請求持久化 `Accept-CH` 標頭

<table class="properties">
<tbody>
Expand All @@ -33,15 +33,15 @@ HTTP **`Accept-CH`** {{Glossary("response header")}} 可以由伺服器設定,
```http
Accept-CH: <client-hints-headers>
// 用戶提示標頭,以逗號分隔的列表
// 用戶端提示標頭,以逗號分隔的列表
Accept-CH: <ch-header-one>, <ch-header-two>
```

## 範例

### 用戶提示回應標頭
### 用戶端提示回應標頭

以下回應標頭表示伺服器在後續請求中接受 `Viewport-Width``Width` [裝置用戶提示](/zh-TW/docs/Web/HTTP/Client_hints#裝置用戶提示)。{{HTTPHeader("Vary")}} 標頭表示根據接受的用戶提示來[變更回應](/zh-TW/docs/Web/HTTP/Client_hints#快取與用戶提示)的值。
以下回應標頭表示伺服器在後續請求中接受 `Viewport-Width``Width` [裝置用戶端提示](/zh-TW/docs/Web/HTTP/Client_hints#裝置用戶端提示)。{{HTTPHeader("Vary")}} 標頭表示根據接受的用戶端提示來[變更回應](/zh-TW/docs/Web/HTTP/Client_hints#快取與用戶端提示)的值。

```http
Accept-CH: Viewport-Width, Width
Expand Down

0 comments on commit 656678e

Please sign in to comment.