Accept-CH
Secure context: This feature is available only in secure contexts (HTTPS), in some or all supporting browsers.
Experimental: 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 com navegadores
Report problems with this compatibility data on GitHubdesktop | mobile | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
Accept-CH client hint accept (response) header | ||||||||||||
Content-DPR token | ||||||||||||
DPR token | ||||||||||||
Device-Memory token | ||||||||||||
Sec-CH-UA token | ||||||||||||
Sec-CH-UA-Arch token | ||||||||||||
Sec-CH-UA-Full-Version token | ||||||||||||
Sec-CH-UA-Mobile token | ||||||||||||
Sec-CH-UA-Model token | ||||||||||||
Sec-CH-UA-Platform token | ||||||||||||
Sec-CH-UA-Platform-Version token | ||||||||||||
Viewport-Width token | ||||||||||||
Width token |
Legend
Tip: you can click/tap on a cell for more information.
- Full support
- Full support
- No support
- No support
- Experimental. Expect behavior to change in the future.
- Non-standard. Check cross-browser support before using.
- Deprecated. Not for use in new websites.