Accept-CH

Secure context
This feature is available only in secure contexts (HTTPS), in some or all supporting browsers.

Esta é uma tecnologia experimental
Verifique a tabela de compatibilidade entre Navegadores cuidadosamente antes de usar essa funcionalidade em produção.

O cabeçalho Accept-CH é colocado pelo servidor para especificar quais cabeçalhos Client Hints o cliente deve incluir nas requisições subsequentes.

Tipo de cabeçalho Response header
Forbidden header name ?

Nota: Client Hints são acessíveis somente em origens seguras (via TLS). Os cabeçalhos Accept-CH e Accept-CH-Lifetime devem ser persistidos por todas as requisições seguras para assegurar que os Client Hints são enviados com segurança.

Sintaxe

Accept-CH: <lista de client hints>

Exemplos

Accept-CH: DPR, Viewport-Width
Accept-CH: Width
Accept-CH-Lifetime: 86400
Vary: DPR, Viewport-Width, Width

Nota: Lembre de variar a resposta baseado nos client hints aceitos.

Compatibilidade de navegador

Update compatibility data on GitHub
DesktopMobile
ChromeEdgeFirefoxInternet ExplorerOperaSafariAndroid webviewChrome for AndroidFirefox for AndroidOpera for AndroidSafari on iOSSamsung Internet
Accept-CHChrome Full support 46Edge Full support ≤79Firefox ? IE ? Opera Full support 33Safari ? WebView Android Full support 46Chrome Android Full support 46Firefox Android ? Opera Android Full support 33Safari iOS ? Samsung Internet Android Full support 5.0
DPR
ExperimentalNon-standard
Chrome Full support 46Edge Full support ≤79Firefox ? IE ? Opera Full support 33Safari ? WebView Android Full support 46Chrome Android Full support 46Firefox Android ? Opera Android Full support 33Safari iOS ? Samsung Internet Android Full support 5.0
Viewport-Width
ExperimentalNon-standard
Chrome Full support 46Edge Full support ≤79Firefox ? IE ? Opera Full support 33Safari ? WebView Android Full support 46Chrome Android Full support 46Firefox Android ? Opera Android Full support 33Safari iOS ? Samsung Internet Android Full support 5.0
Width
ExperimentalNon-standard
Chrome Full support 46Edge Full support ≤79Firefox ? IE ? Opera Full support 33Safari ? WebView Android Full support 46Chrome Android Full support 46Firefox Android ? Opera Android Full support 33Safari iOS ? Samsung Internet Android Full support 5.0

Legend

Full support  
Full support
Compatibility unknown  
Compatibility unknown
Experimental. Expect behavior to change in the future.
Experimental. Expect behavior to change in the future.
Non-standard. Expect poor cross-browser support.
Non-standard. Expect poor cross-browser support.

Veja também