ResponseServeActions

com.typesafe.play.cachecontrol.ResponseServeActions

The possible actions a client can execute when determining to serve a stored response.

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Type members

Classlikes

case class ServeFresh(reason: String) extends ResponseServeAction

The stored response is fresh.

The stored response is fresh.

The cache must serve the stored response without validation.

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
case class ServeStale(reason: String) extends ResponseServeAction

A stored response was found, but is stale.

A stored response was found, but is stale.

The cache must serve the stored response without validation.

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
case class ServeStaleAndValidate(reason: String) extends ResponseServeAction

A stored response was found, but is stale.

A stored response was found, but is stale.

The cache must serve the stored response immediately, and validate in the background.

If the validation has not happened after now + delta seconds, then the resource should NOT be served stale.

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
case class Validate(reason: String, staleIfError: Boolean) extends ResponseServeAction

A stored response was found, but is stale.

A stored response was found, but is stale.

The cache must validate the request with the origin server.

If the origin server cannot be reached, then the cache MAY serve the stale response. In addition, if staleOnError is true, then the cache can serve the stale response when the origin server returns a 5xx response.

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
case class ValidateOrTimeout(reason: String) extends ResponseServeAction

A stored response was found, but is stale.

A stored response was found, but is stale.

The cache must validate the request with the origin server.

If the origin server cannot be reached, then the cache MUST serve a gateway timeout response.

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all