max-age
The max-age entry specifies the amount of time that clients may cache the results of a pre-flight response.
max-age = <seconds>
Description
The number of seconds a client should cache the results of a pre-flight check. This adds the following header to pre-flight responses:Access-Control-Max-Age: <seconds>This entry should be a positive integer or the values -1 or 0 which are special cases explained below.
- Set this value to -1 will indicate to the client that it should not cache pre-flight results.
- Set this value to 0 will allow the client to cache results at its own discretion.
If this entry is not present, no Access-Control-Max-Age header is added.
This entry only affects only pre-flight requests.
Options
seconds The number of seconds a client should cache the results of a pre-flight check.
Usage: Optional
Default value: None.
Example:
max-age = 3600
Parent topic: [cors-policy:policy-name] stanza