Class CacheUtils

java.lang.Object
org.apache.synapse.transport.netty.util.CacheUtils

public class CacheUtils extends Object
A utility class for HTTP caching related tasks.
  • Field Details

  • 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 downstream
      inboundRequest - The request received from downstream
      Returns:
      Returns true if the cached response is still valid