Class CacheUtils
java.lang.Object
org.apache.synapse.transport.netty.util.CacheUtils
A utility class for HTTP caching related tasks.
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic booleanisValidCachedResponse(org.wso2.transport.http.netty.message.HttpCarbonMessage outboundResponse, org.wso2.transport.http.netty.message.HttpCarbonMessage inboundRequest) Method for revalidating a cached response.
-
Field Details
-
WEAK_VALIDATOR_TAG
- See Also:
-
ETAG_HEADER
- See Also:
-
IF_NONE_MATCH_HEADER
- See Also:
-
IF_MODIFIED_SINCE_HEADER
- See Also:
-
LAST_MODIFIED_HEADER
- See Also:
-
-
Method Details
-
isValidCachedResponse
public static boolean isValidCachedResponse(org.wso2.transport.http.netty.message.HttpCarbonMessage outboundResponse, org.wso2.transport.http.netty.message.HttpCarbonMessage inboundRequest) Method for revalidating a cached response. This method follows the RFC7232 and RFC7234 specifications.- Parameters:
outboundResponse- The response to be sent to downstreaminboundRequest- The request received from downstream- Returns:
- Returns true if the cached response is still valid
-