java.lang.Object
com.github.mizosoft.methanol.internal.cache.CacheStrategy
A strategy for determining whether a stored response is fresh enough for the cache to serve
without contacting the origin, based on the caching rules imposed by the server and client.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addCacheHeaders
(ResponseBuilder<?> builder) conditionalize
(HttpRequest request) boolean
boolean
boolean
-
Method Details
-
isCacheResponseServable
public boolean isCacheResponseServable() -
isCacheResponseServableOnError
public boolean isCacheResponseServableOnError() -
requiresBackgroundRevalidation
public boolean requiresBackgroundRevalidation() -
addCacheHeaders
-
conditionalize
-