Migrate to User-Agent Client Hints #3420
Daniel15
started this conversation in
Anything Else
Replies: 1 comment 1 reply
-
This is far from should migrate. It's something to keep an eye out for going forward, probably in a couple of years once the browser support is there. It's not even gonna leave experimental any time soon probably. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Major browsers are freezing the User-Agent, meaning they'll have less fidelity and it won't be sufficient for identifying the browser. Over time, the user-agent will be deprecated.
The suggested replacement is to use Client Hints, which is an API that replaces the User-Agent. The server can request client hints by using a header, and there's also a JS API to request the client hints.
https://developer.mozilla.org/en-US/docs/Web/API/User-Agent_Client_Hints_API
Plausible should migrate from using User-Agent to instead use client hints.Plausible should consider using client hints in browsers that support them, falling back to User Agent in others.
Beta Was this translation helpful? Give feedback.
All reactions