-
Notifications
You must be signed in to change notification settings - Fork 9.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
core(main-resource): find last matching document request #15323
Conversation
Our most bullet-proof method for this is probably: lighthouse/core/audits/redirects.js Lines 38 to 78 in e5d1b9c
checks frame (don't want to match iframes from pages embedding themselves), matches requests by requestId not URL, follows JS and HTTP redirects, etc. It requires the processed trace, but that's already in |
The error I saw was in |
fyi #15001 |
Yeah, I brought up the redirects method because I was thinking back then we should switch more infrastructure over to using request IDs.
Any reason it couldn't? Anything expecting to find a main resource should have observed it in the trace, too. |
Sorry I should have said the reason for the error in |
totally forgot I did this: #14520 |
we going with above pr |
Noticed this on https://umich.edu
If a page does a JS refresh then we will use the wrong network request as the main resource because we match on url. We should be looking for the last request.