PrefetchResult


@Profile.ExperimentalUrlPrefetch
public final 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 methods

boolean

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

Public methods

wasDuplicate

public boolean wasDuplicate()

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.