cached method
The cached resolution for uri's origin, or null. Expired entries are
returned only when allowStale is true.
Implementation
ProxyResolution? cached(Uri uri, {bool allowStale = false}) {
if (uri.host.isEmpty) return null;
final key = cacheKey(uri);
return allowStale ? _cache[key]?.resolution : _fresh(key);
}