Skip to content

Initializer

init(mustRevalidated:noCache:noStore:noTransform:isPublic:isPrivate:proxyRevalidate:onlyIfCached:immutable:maxAge:sMaxAge:maxStale:minFresh:staleWhileRevalidate:staleIfError:)

Creates a new CacheControl.
init(mustRevalidated: Bool = false, noCache: Bool = false, noStore: Bool = false, noTransform: Bool = false, isPublic: Bool = false, isPrivate: Bool = false, proxyRevalidate: Bool = false, onlyIfCached: Bool = false, immutable: Bool = false, maxAge: Int? = nil, sMaxAge: Int? = nil, maxStale: HTTPHeaders.CacheControl.MaxStale? = nil, minFresh: Int? = nil, staleWhileRevalidate: Int? = nil, staleIfError: Int? = nil)