public String generateKey(final HttpHost host, final HttpRequest request) {
        final String s = getRequestUri(host, request);
        try {
            return generateKey(new URI(s));
        } catch (final URISyntaxException ex) {
            return s;
        }
    }
Computes a root key for the given {@link HttpHost} and {@link HttpRequest}
that can be used as a unique identifier for cached resources.

@param host The host for this request
@param request the {@link HttpRequest}
@return cache key
httpclient5-cache/src/main/java/org/apache/hc/client5/http/impl/cache/CacheKeyGenerator.java