public String generateKey(final URI requestUri) {
        try {
            final URI normalizeRequestUri = normalize(requestUri);
            return normalizeRequestUri.toASCIIString();
        } catch (final URISyntaxException ex) {
            return requestUri.toASCIIString();
        }
    }
Computes a key for the given request {@link URI} that can be used as
a unique identifier for cached resources. The URI is expected to
in an absolute form.

@param requestUri request URI
@return cache key
httpclient5-cache/src/main/java/org/apache/hc/client5/http/impl/cache/CacheKeyGenerator.java