User Agents in Content Negotiation
Most explanations of content negotiation either oversimplify or drown you in detail. This one aims for the middle. At its core this is about serving variants by client, and once that clicks the rest follows naturally.
How content negotiation works in practice
Practice diverges from theory quickly. Different setups behave differently, and what holds in one environment may not hold in another. The important thing is to understand the underlying mechanism rather than memorising a checklist, because the specifics change while the principles stay reasonably stable.
- Start from what is actually being measured or offered, not from what is claimed.
- Compare against a known-good reference point before drawing conclusions.
- Record what you observe so you can spot changes over time.
Where people go wrong
Assuming a single check is sufficient. Layered approaches consistently outperform any individual signal or tactic.
A related error is over-correcting. Aggressive measures often create new problems — unusual configurations can stand out precisely because they are unusual, and overly strict rules tend to catch the wrong targets.
What to do with this
Begin with a baseline. Establish what normal looks like in your own context, then investigate deviations from it. That approach is more durable than any fixed list of rules, and it adapts as conditions change.
If you take one thing from this: serving variants by client is the concept doing the real work here. Everything else is implementation detail that will look different in six months.