MaxAge

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

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

Constructors

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

Properties

Link copied to clipboard

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

true if a caching proxy must revalidate in spite of age

Link copied to clipboard

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