CacheControl

sealed class CacheControl

Represents a value for a Cache-Control header

Parameters

visibility - specifies an optional visibility such as private or public

Types

MaxAge

class MaxAge : CacheControl

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

NoCache

class NoCache : CacheControl

Represents a no-cache cache control value

NoStore

class NoStore : CacheControl

Represents a no-store cache control value

Visibility

enum class Visibility

Controls caching by proxies

Properties

visibility

val visibility: Visibility?

specifies an optional visibility such as private or public

Inheritors

MaxAge

class MaxAge : CacheControl

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

NoCache

class NoCache : CacheControl

Represents a no-cache cache control value

NoStore

class NoStore : CacheControl

Represents a no-store cache control value