Open Bug 1905759 Opened 3 months ago Updated 3 months ago

ResourceTiming and NavigationTiming nextHopProtocol should be empty for cached resources

Categories

(Core :: DOM: Performance, defect)

Firefox 127
defect

Tracking

()

UNCONFIRMED

People

(Reporter: nic, Unassigned)

Details

Steps to reproduce:

  1. Navigate to https://dev.nicj.net/nexthopprotocol-transfersize.html
  2. This repro page reports the nextHopProtocol and transferSize of the page (NavigationTiming) and a simple Fetch (ResourceTiming)
  3. On the initial page load, you should see h2 and some amount of bytes transferred
  4. If you click on "navigate to same page on domain 1" it'll re-navigate to the same page, which should be in the HTTP cache
  5. The nextHopProtocol is still listed as h2 even though transferSize=0 (it's loaded from the disk or memory cache)

Actual results:

The nextHopProtocol is still listed as h2 even though transferSize=0 (it's loaded from the disk or memory cache)

Expected results:

ResourceTiming specifies that content fetched from application caches should have nextHopProtocol be empty:

https://w3c.github.io/resource-timing/#sec-performanceresourcetiming

Component: Untriaged → DOM: Performance
Product: Firefox → Core

The severity field is not set for this bug.
:fdoty, could you have a look please?

For more information, please visit BugBot documentation.

Flags: needinfo?(fdoty)
Severity: -- → S3
Flags: needinfo?(fdoty)
You need to log in before you can comment on or make changes to this bug.