Vapor Documentation Beta

Structure HTTPHeaders.​Cache​Control.​Max​Stale

public struct MaxStale

The max-stale option can be present with no value, or be present with a number of seconds. By using a struct you can check the nullability of the maxStale variable as well as then check the nullability of the seconds to differentiate.

Member Of


Represents the HTTP Cache-Control header.



var seconds: Int?

The upper limit of staleness the client will accept.