com.typesafe.play.cachecontrol
ResponseCachingCalculator
Companion object ResponseCachingCalculator
class ResponseCachingCalculator extends AnyRef
Decides whether this response from an origin server should be stored in cached or not.
https://tools.ietf.org/html/rfc7234#section-3
- Alphabetic
- By Inheritance
- ResponseCachingCalculator
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
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[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
-
def
containsAuthorizationHeader(request: CacheRequest): Boolean
Returns true if the request contains an Authorization header, false otherwise.
Returns true if the request contains an Authorization header, false otherwise.
- Attributes
- protected
-
def
containsCachableExtension(response: OriginResponse): Boolean
- Attributes
- protected
-
def
containsExpiresHeader(response: OriginResponse): Boolean
Returns true if the response contains an expires header, false otherwise.
Returns true if the response contains an expires header, false otherwise.
- Attributes
- protected
-
def
containsIncompatibleAuthorizationInSharedCache(request: CacheRequest, response: OriginResponse): Option[DoNotCacheResponse]
"the Authorization header field (see Section 4.2 of [Part7]) does not appear in the request, if the cache is shared, unless the response explicitly allows it (see Section 3.2)"
"the Authorization header field (see Section 4.2 of [Part7]) does not appear in the request, if the cache is shared, unless the response explicitly allows it (see Section 3.2)"
- Attributes
- protected
-
def
containsMaxAgeDirective(response: OriginResponse): Boolean
- Attributes
- protected
-
def
containsMustRevalidateDirective(response: OriginResponse): Boolean
- Attributes
- protected
-
def
containsNoStoreDirective(request: CacheRequest, response: OriginResponse): Option[DoNotCacheResponse]
"the "no-store" cache directive (see Section 5.2) does not appear in request or response header fields"
"the "no-store" cache directive (see Section 5.2) does not appear in request or response header fields"
- Attributes
- protected
-
def
containsPrivateResponseDirectiveInSharedCache(request: CacheRequest, response: OriginResponse): Option[DoNotCacheResponse]
"the "private" response directive (see Section 5.2.2.6) does not appear in the response, if the cache is shared, and"
"the "private" response directive (see Section 5.2.2.6) does not appear in the response, if the cache is shared, and"
- Attributes
- protected
-
def
containsPublicDirective(response: OriginResponse): Boolean
- Attributes
- protected
-
def
containsSMaxAgeDirective(response: OriginResponse): Boolean
- Attributes
- protected
-
def
directiveAllowsAuthorization(response: OriginResponse): Boolean
https://tools.ietf.org/html/rfc7234#section-3.2
https://tools.ietf.org/html/rfc7234#section-3.2
"must-revalidate, public, and s-maxage" allow an authorization header.
- Attributes
- protected
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
ineligibleResponseCode(request: CacheRequest, response: OriginResponse): Option[DoNotCacheResponse]
Returns DoNotCacheResponse if this is not an "understood" response code, according to cache.isUnderstoodStatusCode.
Returns DoNotCacheResponse if this is not an "understood" response code, according to cache.isUnderstoodStatusCode.
- Attributes
- protected
-
def
isCacheable(request: CacheRequest, response: OriginResponse): ResponseCachingAction
Returns an action indicating whether the request should be cached or not.
-
def
isCacheableExtension(extension: CacheDirectiveExtension): Boolean
Returns true if this is an extension that allows it to be cached.
Returns true if this is an extension that allows it to be cached.
https://tools.ietf.org/html/rfc7234#section-5.2.3
- Attributes
- protected
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
notCacheableMethod(request: CacheRequest, response: OriginResponse): Option[DoNotCacheResponse]
Returns DoNotCacheResponse if request method is not cacheable, according to cache.isCacheableMethod.
Returns DoNotCacheResponse if request method is not cacheable, according to cache.isCacheableMethod.
- Attributes
- protected
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
def
responseIsCacheable(request: CacheRequest, response: OriginResponse): ResponseCachingAction
Returns true if the response is cacheable.
Returns true if the response is cacheable.
https://tools.ietf.org/html/rfc7234#section-3
- Attributes
- protected
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )