CacheControl

abstract class CacheControl(val visibility: CacheControl.Visibility?)

Represents a value for a Cache-Control header

Parameters

visibility

specifies an optional visibility such as private or public

Constructors

Link copied to clipboard

Types

Link copied to clipboard
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

Link copied to clipboard
class NoCache(val visibility: CacheControl.Visibility?) : CacheControl

Represents a no-cache cache control value

Link copied to clipboard
class NoStore(val visibility: CacheControl.Visibility?) : CacheControl

Represents a no-store cache control value

Link copied to clipboard

Controls caching by proxies

Properties

Link copied to clipboard

Inheritors

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard