CacheControlType

enum CacheControlType : ExpressibleByStringLiteral, CustomStringConvertible, Equatable, Hashable

Available cache control types

  • No cache

    Declaration

    Swift

    case noCache
  • No store

    Declaration

    Swift

    case noStore
  • No transform

    Declaration

    Swift

    case noTransform
  • Only if cached

    Declaration

    Swift

    case onlyIfCached
  • Maximum age

    Declaration

    Swift

    case maxAge(seconds: Int)
  • Maximum stale

    Declaration

    Swift

    case maxStale(seconds: Int?)
  • Minimum Fresh

    Declaration

    Swift

    case minFresh(seconds: Int)
  • Custcom cache control

    Declaration

    Swift

    case custom(_: String)

CustomStringConvertibble

  • Declaration

    Swift

    public var description: String { get }

ExpressibleByStringLiteral

Equatable

Hashable

  • Declaration

    Swift

    public func hash(into hasher: inout Hasher)