MaxAge

class MaxAge : CacheControl

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

Constructors

<init>

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

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

Properties

maxAgeSeconds

val maxAgeSeconds: Int

max-age in seconds

mustRevalidate

val mustRevalidate: Boolean

true if a client must validate in spite of age

proxyMaxAgeSeconds

val proxyMaxAgeSeconds: Int?

max-age in seconds for caching proxies

proxyRevalidate

val proxyRevalidate: Boolean

true if a caching proxy must revalidate in spite of age

Inherited Properties

visibility

val visibility: Visibility?

specifies an optional visibility such as private or public

Functions

toString

fun toString(): String