public long getMaxObjectSize() {
        return maxObjectSize;
    }
Returns the current maximum response body size that will be cached.
@return size in bytes

@since 4.2
httpclient5-cache/src/main/java/org/apache/hc/client5/http/impl/cache/CacheConfig.java