@Override public boolean shouldCachePath(String path, @Nullable String query, PathMapping pathMapping) { return delegate.shouldCachePath(path, query, pathMapping); }
@Override public boolean shouldCachePath(String path, @Nullable String query, PathMapping pathMapping) { // No good way of propagating the first vs second decision to the cache decision, so just make a // best effort, it should work for most cases. return first.shouldCachePath(path, query, pathMapping) && second.shouldCachePath(path, query, pathMapping); } }
if (service.shouldCachePath(pathAndQuery.path(), pathAndQuery.query(), mapped.mapping())) { reqCtx.log().addListener(log -> { final HttpStatus status = log.responseHeaders().status();