files/en-us/web/http/reference/headers/sec-ch-width/index.md
{{SecureContext_header}}{{SeeCompatTable}}
The HTTP Sec-CH-Width {{Glossary("request header")}} is a device client hint which indicates the desired resource width in physical pixels — the intrinsic size of an image. The provided pixel value is a number rounded to the smallest following integer (i.e., ceiling value).
The hint is only sent on image requests.
The hint allows the client to request a resource that is optimal for both the screen and the layout: taking into account both the density-corrected width of the screen and the image's extrinsic size within the layout.
If the desired resource width is not known at the time of the request or the resource does not have a display width, the Sec-CH-Width header field can be omitted.
If the Sec-CH-Width header appears more than once in a message the last occurrence is used.
Width: <number>
<number>
The server first needs to opt in to receive the Sec-CH-Width header by sending the response headers {{HTTPHeader("Accept-CH")}} containing Sec-CH-Width.
Accept-CH: Sec-CH-Width
Then on subsequent image requests the client might send Sec-CH-Width header back:
Width: 1920
{{Specifications}}
{{Compat}}