MaxAge

class MaxAge(maxAgeSeconds: Int, proxyMaxAgeSeconds: Int?, mustRevalidate: Boolean, proxyRevalidate: Boolean, visibility: CacheControl.Visibility?) : CacheControl

Represents a cache control value with the specified max ages and re-validation strategies

Constructors

Link copied to clipboard
fun MaxAge(maxAgeSeconds: Int, proxyMaxAgeSeconds: Int? = null, mustRevalidate: Boolean = false, proxyRevalidate: Boolean = false, visibility: CacheControl.Visibility? = null)

Functions

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
open override fun toString(): String

Properties

Link copied to clipboard
val maxAgeSeconds: Int

max-age in seconds

Link copied to clipboard
val mustRevalidate: Boolean = false

true if a client must validate in spite of age

Link copied to clipboard
val proxyMaxAgeSeconds: Int? = null

max-age in seconds for caching proxies

Link copied to clipboard
val proxyRevalidate: Boolean = false

true if a caching proxy must revalidate in spite of age

Link copied to clipboard
val visibility: CacheControl.Visibility?