PrefetchResult


@Profile.ExperimentalUrlPrefetch
class PrefetchResult


Represents the outcome of a successful prefetch operation.

A PrefetchResult is returned via PrefetchCache prefetch operations when a prefetch request has been handled in a non-failing way.

Summary

Public functions

Boolean

Returns whether the prefetch request was deduplicated against an existing entry in the prefetch cache.

Public functions

wasDuplicate

fun wasDuplicate(): Boolean

Returns whether the prefetch request was deduplicated against an existing entry in the prefetch cache.

WebView performs deduplication when a prefetch request matches an existing in-flight or completed prefetch request. Matching is based on the URL and, if provided in PrefetchParameters, the expected No-Vary-Search (NVS) data.

Returns
Boolean

true if the request was deduplicated, false otherwise.