-
Notifications
You must be signed in to change notification settings - Fork 9.5k
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
Audit claims start_url of /?utm_ is not cached when navigateFallback exists #2688
Comments
Ah this is a good use case for us to cover thanks for the report @keanulee! More information on navigateFallback |
@keanulee do you have a URL to share for easy testing? (otherwise it's not that difficult to set something up) The issue is that we use the value of The tradeoff is that Lighthouse would more easily give false passes to sites that don't actually cache their start_url page, but have an offline fallback page set up. I'm not sure if there's a way out of the tension between these two. @jeffposnick for funsies. |
Unfortunately I don't have a test URL handy (since I changed the start_url of what I'm working on back to |
I agree. I'm in favor of just requiring that https://github.com/GoogleChrome/lighthouse/blob/master/lighthouse-core/gather/gatherers/start-url.js#L43 comes back without failure. If we can request your startUrl in the context of the page and get a successful response, then why does it matter if they redirected or supplied a fallback? |
Yeah, I think I agree, I'm just thinking about the other side of things: for anyone with a Maybe we can add a future custom audit that allows stronger assertions about what the |
hmm, I just did a quick test of this, and a The network record has a url of what was requested, not what was returned, so as long as the SW is returning something when fetching I've either messed up the test or there's something else causing the failure, so we'll need to come up with a better repro of the problem. |
I see a problem with the start-url gatherer: it performs a generic You can't programmatically construct (see item 17) a This has come up before: see #578 |
Ah thanks for the insight @jeffposnick. Looks like we'll have to end up saving the startUrl for the offline pass to use then after all |
Thanks @jeffposnick. Piece of institutional memory we lost between #578 and now :) For testing, we should maybe add a fallback like that to the SW of the For the audit, I think we still don't want to navigate to |
Hi My PWA app.climadiario.com fails this audit test of LightHouse with "Failures: Manifest start_url is not cached by a Service Worker." but actually the app is prompting users to ADD to homescreen. This is what I have in manifest.json. Is this a bug ?
|
@neavilag Hi. I have |
Any news about this? It prevents getting 100 on PWA section. 😕 |
Sounds great, thanks @patrickhulce! |
Looks like 709 is still open. What's the plan on this one? |
What is the status with this? |
This should actually already be fixed by the "new" method ("new" being May 2018) of our offline check. If anyone has a repro URL where this is popping up, feel free to chime back in. |
Hi @patrickhulce. Issue still seems to be happening to us on www.bhphotovideo.com. |
In my manifest I specify
start_url
as something withutm_
params (as suggested by https://developers.google.com/web/fundamentals/engage-and-retain/web-app-manifest/#set_a_start_url):My SW precaches
index.html
and serves it asnavigateFallback
(as generated by sw-precache), but Lighthouse doesn't seem to recognize this and fails the audit with "Failures: Manifest start_url is not cached by a Service Worker."The text was updated successfully, but these errors were encountered: