docs.rodeo

MDN Web Docs mirror

Access-Control-Max-Age

{{HTTPSidebar}} 

The HTTP Access-Control-Max-Age {{Glossary("response header")}}  indicates how long the results of a {{glossary("preflight request")}}  (that is, the information contained in the {{HTTPHeader("Access-Control-Allow-Methods")}}  and {{HTTPHeader("Access-Control-Allow-Headers")}}  headers) can be cached.

Header type `{{Glossary("Response header")}}` 
`{{Glossary("Forbidden header name")}}`  No

Syntax

Access-Control-Max-Age: <delta-seconds>

Directives

Examples

Cache results of a preflight request for 10 minutes:

Access-Control-Max-Age: 600

Specifications

{{Specifications}} 

Browser compatibility

{{Compat}} 

See also

In this article

View on MDN