Currently when a resource is prefetched using <link rel=prefetch>, we ignore its cache semantics (namely max-age & no-cache) for the first use within 5 minutes, to avoid refetching. Proposing to remove this behavior and use standard HTTP cache semantics.
The 5-minute rule was never standardized, not implemented by other browsers, and now as part of an effort to make prefetch interoperable across browsers I would like to align on a behavior that doesn't include this. Data to support this: 1. A UMA histogram shows that 0.05% of prefetch reuses actually benefit from this. About 85% of prefetches are reused regardless (e.g. inside the max-age anyway), and about 15% are not reused (e.g. 5 minutes have passed, not the first reuse). 2. Developers who rely on this can opt-in to this behavior, by setting a 5-minute max-age on prefetch requests (requests with a [Sec-]Purpose: prefetch header). Spec PR to align on prefetch processing: https://github.com/whatwg/html/pull/8111 Chromium Bug for the removal: https://bugs.chromium.org/p/chromium/issues/detail?id=1345207
Does this intent deprecate or change behavior of existing APIs, such that it has potentially high risk for Android WebView-based applications?
No milestones specified