api

http4k / org.http4k.filter / CachingFilters / Response / NoCache

NoCache

object NoCache

By default, only applies when the status code of the response is < 400. This is overridable and useful - For example you could combine this with a MaxAge for everything >= 400

Functions

Name Summary
invoke operator fun invoke(predicate: (Response) -> Boolean = { it.status.code < 400 }): Filter