GoogleChrome / lighthouse

Automated auditing, performance metrics, and best practices for the web.
https://developer.chrome.com/docs/lighthouse/overview/
Apache License 2.0
28k stars 9.32k forks source link

core(network): align headers end time with send when no data received #16044

Closed connorjclark closed 3 weeks ago

connorjclark commented 3 weeks ago

This modifies how our NetworkRequest sets responseHeadersEnd in the absence of actual network data received (ex: cached requests or data urls) to match what TraceEngine does. Instead of falling back to the CDP timestamp of the onResponse event, use the timestamp from the willSendRequest event.

ref https://github.com/GoogleChrome/lighthouse/issues/15841