private boolean matchesHttpMethod(String policyEntry, String requestValue) {
        if(policyEntry.equals(CachingResourcesSettingsEntry.MATCH_ALL)) {
            //check cachable http methods (see  https://developer.mozilla.org/en-US/docs/Glossary/cacheable)
            return requestValue.equalsIgnoreCase("GET") || requestValue.equalsIgnoreCase("POST") || requestValue.equalsIgnoreCase("HEAD");
        }
        return requestValue.equalsIgnoreCase(policyEntry);
    }
Verify policy entry against request value and ensure that only cachable http methods are cached.
@param policyEntry
@param requestValue
@return
gateway/engine/policies/src/main/java/io/apiman/gateway/engine/policies/CachingResourcesPolicy.java