Skip to content
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

Incorrect user agent on pagespeed.web.dev #15971

Open
3 tasks done
thomaswelton opened this issue Apr 20, 2024 · 2 comments
Open
3 tasks done

Incorrect user agent on pagespeed.web.dev #15971

thomaswelton opened this issue Apr 20, 2024 · 2 comments

Comments

@thomaswelton
Copy link

FAQ

URL

https://pagespeed.web.dev/analysis

What happened?

Running a lighthouse test via https://pagespeed.web.dev/analysis/ I can see from the UI that the user agent of the browser running the lighthouse test should be

User agent (network): "Mozilla/5.0 (Linux; Android 11; moto g power (2022)) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/119.0.0.0 Mobile Safari/537.36"

However, when I take a look at my server logs I can see the the user agent is reported as

userAgent: "Mozilla/5.0 (Linux; Android 7.0; Moto G (4)) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/94.0.4590.2 Mobile Safari/537.36 Chrome-Lighthouse"

What did you expect?

I can see from this issue #14917 that the words Chrome Lighthouse were removed here #14384 but from my server logs I can see that it is still present in the user agent.

Also instead of the expected Chrome/119.0.0.0 I'm seeing Chrome/94.0.4590.2

What have you tried?

No response

How were you running Lighthouse?

PageSpeed Insights

Lighthouse Version

11.5.0

Chrome Version

No response

Node Version

No response

OS

No response

Relevant log output

No response

@dwsmart
Copy link

dwsmart commented Apr 25, 2024

The older version of Chrome reported does seem to trip some sites up, like this one that came to the Google Search Central forums. Presumably they are blocking older browser versions, which given isn't a great idea, but would be good to see this have a more up-to-date user-agent string.

@adamraine
Copy link
Member

I think this is already goal of #15829

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants