public boolean isOnlyIfCached() {
        return onlyIfCached;
    }
Returns the only-if-cached flag from the Cache-Control header.

@return The only-if-cached flag.
httpclient5-cache/src/main/java/org/apache/hc/client5/http/cache/RequestCacheControl.java