Type Method
cache(upTo:)
The browser will cache the file for the specified duration.
static func cache(upTo duration: Duration) -> CachePolicy
Discussion
A typical cache duration may be 5 minutes, for instance: .cache(upTo: .seconds(300))
You're viewing documentation for a pre-release version. View the latest stable version
Type Method
static func cache(upTo duration: Duration) -> CachePolicy
A typical cache duration may be 5 minutes, for instance: .cache(upTo: .seconds(300))