Page Size / number of request metrics include resources used to pre-populate Service Worker cache
For pages that use a Service Worker the size of the page and number of resources it uses includes any resources that are downloaded as part of pre-populating the Service Worker cache.
As a result the size of these pages will be overstated.
Isn’t that then the cost to load this page on most modern browsers though?
Depends what you’re trying to measure I suppose.
I think the current totalBytes and totalRequestsbehavior is WAI, but I agree it would be good to have annotations for SW-initiated requests so they could be filtered out if needed. @andydavies I saw you recently added UI changes to WPT to this effect. Do you know if the HAR files also differentiate between these requests? Or do you feel strongly that these requests should be omitted from HTTP Archive's aggregations?