object CacheControl extends HeaderType
- Alphabetic
- By Inheritance
- CacheControl
- HeaderType
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Type Members
-
type
HeaderValue = CacheControl
- Definition Classes
- CacheControl → HeaderType
-
final
case class
MaxAge(freshForSeconds: Int) extends CacheControl with Product with Serializable
The max-age=N response directive indicates that the response remains fresh until N seconds after the response is generated.
The max-age=N response directive indicates that the response remains fresh until N seconds after the response is generated.
The max-age=N request directive indicates that the client allows a stored response that is generated on the origin server within N seconds
-
final
case class
MaxStale(staleWithinSeconds: Int) extends CacheControl with Product with Serializable
The max-stale=N request directive indicates that the client allows a stored response that is stale within N seconds.
-
final
case class
MinFresh(freshAtLeastSeconds: Int) extends CacheControl with Product with Serializable
The min-fresh=N request directive indicates that the client allows a stored response that is fresh for at least N seconds.
-
final
case class
Multiple(values: NonEmptyChunk[CacheControl]) extends CacheControl with Product with Serializable
Maintains a chunk of CacheControl values.
-
final
case class
SMaxAge(freshForSeconds: Int) extends CacheControl with Product with Serializable
The s-maxage response directive also indicates how long the response is fresh for (similar to max-age) — but it is specific to shared caches, and they will ignore max-age when it is present.
-
final
case class
StaleIfError(seconds: Int) extends CacheControl with Product with Serializable
The stale-if-error response directive indicates that the cache can reuse a stale response when an origin server responds with an error (500, 502, 503, or 504).
-
final
case class
StaleWhileRevalidate(seconds: Int) extends CacheControl with Product with Serializable
The stale-while-revalidate response directive indicates that the cache could reuse a stale response while it revalidates it to a cache.
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native() @IntrinsicCandidate()
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @IntrinsicCandidate()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @IntrinsicCandidate()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
def
name: String
- Definition Classes
- CacheControl → HeaderType
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @IntrinsicCandidate()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @IntrinsicCandidate()
-
def
parse(value: String): Either[String, CacheControl]
- Definition Classes
- CacheControl → HeaderType
-
def
render(value: CacheControl): String
- Definition Classes
- CacheControl → HeaderType
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
object
Immutable extends CacheControl with Product with Serializable
The immutable response directive indicates that the response will not be updated while it's fresh
-
object
MustRevalidate extends CacheControl with Product with Serializable
The must-revalidate response directive indicates that the response can be stored in caches and can be reused while fresh.
The must-revalidate response directive indicates that the response can be stored in caches and can be reused while fresh. If the response becomes stale, it must be validated with the origin server before reuse.
-
object
MustUnderstand extends CacheControl with Product with Serializable
The must-understand response directive indicates that a cache should store the response only if it understands the requirements for caching based on status code.
-
object
NoCache extends CacheControl with Product with Serializable
The no-cache response directive indicates that the response can be stored in caches, but the response must be validated with the origin server before each reuse.
The no-cache response directive indicates that the response can be stored in caches, but the response must be validated with the origin server before each reuse.
The no-cache request directive asks caches to validate the response with the origin server before reuse.
-
object
NoStore extends CacheControl with Product with Serializable
The no-store response directive indicates that any caches of any kind (private or shared) should not store this response.
The no-store response directive indicates that any caches of any kind (private or shared) should not store this response.
The no-store request directive allows a client to request that caches refrain from storing the request and corresponding response — even if the origin server's response could be stored.
-
object
NoTransform extends CacheControl with Product with Serializable
The no-transform indicates that any intermediary (regardless of whether it implements a cache) shouldn't transform the response/request contents.
-
object
OnlyIfCached extends CacheControl with Product with Serializable
The client indicates that cache should obtain an already-cached response.
The client indicates that cache should obtain an already-cached response. If a cache has stored a response, it's reused.
-
object
Private extends CacheControl with Product with Serializable
The private response directive indicates that the response can be stored only in a private cache
-
object
ProxyRevalidate extends CacheControl with Product with Serializable
The proxy-revalidate response directive is the equivalent of must-revalidate, but specifically for shared caches only.
-
object
Public extends CacheControl with Product with Serializable
The public response directive indicates that the response can be stored in a shared cache.