Structure
FileMiddleware.CachePolicy
The browser cache policy files should be served with.
struct CachePolicy
Topics
Type Properties
browserDefaultThe browser’s default caching policy should be used.noCacheThe browser will always ask before requesting the full file.
Type Methods
cacheUpToDuration(_:)The browser will cache the file for the specified duration.custom(cacheControlHeader:ageHeader:)A custom cache control policy that should be used for all files.
Relationships
Conforms To
Swift.SendableSwift.SendableMetatype