blob: b76b2e6bb6974b8dcea73915b92834902664647c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
|
---
title: Accept-CH-Lifetime
slug: Web/HTTP/Headers/Accept-CH-Lifetime
tags:
- Client hints
- Dicas do Cliente
- HTTP
- HTTP Header
translation_of: Web/HTTP/Headers/Accept-CH-Lifetime
---
<div>{{HTTPSidebar}}{{securecontext_header}}{{SeeCompatTable}}</div>
<p>O cabeçalho <code><strong>Accept-CH-Lifetime</strong></code> é colocado pelo servidor para especificar a persistência do valor do cabeçalho {{HTTPHeader("Accept-CH")}}, que especifica para quais cabeçalhos <a href="/en-US/docs/Glossary/Client_hints">Client Hints</a> o cliente deve incluir nas suas requisições subsequentes.</p>
<table class="properties">
<tbody>
<tr>
<th scope="row">Tipo de cabeçalho</th>
<td>{{Glossary("Response header")}}</td>
</tr>
<tr>
<th scope="row">{{Glossary("Forbidden header name")}}</th>
<td>?</td>
</tr>
</tbody>
</table>
<div class="blockIndicator note">
<p><strong>Nota:</strong> 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.</p>
</div>
<h2 id="Sintaxe">Sintaxe</h2>
<pre class="syntaxbox">Accept-CH-Lifetime: <age>
</pre>
<h2 id="Exemplos">Exemplos</h2>
<pre>Accept-CH: Viewport-Width, DPR
Accept-CH-Lifetime: 86400
</pre>
<h2 id="Browser_compatibility">Compatibilidade com navegadores</h2>
<p>{{Compat("http.headers.Accept-CH-Lifetime")}}</p>
<h2 id="Veja_também">Veja também</h2>
<ul>
<li>{{HTTPHeader("Accept-CH")}}</li>
<li>{{HTTPHeader("Vary")}}</li>
</ul>
|