The HTTP Sec-Private-State-Token-Lifetime Response Header is used by the Private State Token API during token redemption. It is sent by the redeemer server to indicate to the browser how long (in seconds) a redemption record should be cached for. The redemption record itself is sent in a Sec-Private-State-Token response header.
If the Sec-Private-State-Token-Lifetime header is omitted, the lifetime of the redemption record will be tied to the lifetime of the token verification key that confirmed the redeemed token's issuance.
<table class="properties"> <tbody> <tr> <th scope="row">Header type</th> <td>Response Header</td> </tr> <tr> <th scope="row"> CORS-safelisted request header </th> <td>No</td> </tr> </tbody> </table>
Syntax
Sec-Private-State-Token-Lifetime: <integer>
Servers should ignore this header if it contains any other value.
Directives
<integer>- : An integer specifying the lifetime of the sent redemption record in seconds.
Examples
Sec-Private-State-Token-Lifetime: 604800
Specifications
Browser compatibility
See also
- Sec-Private-State-Token
- Sec-Private-State-Token-Crypto-Version
- Sec-Redemption-Record
- Private State Token API
来源:MDN Web Docs / Mozilla 贡献者 · 作者与贡献记录 · CC BY-SA 2.5。离线整理了版式、链接和媒体显示。
