Summary

  • RFC 6648, June 2012, Best Current Practice 178, deprecates the long convention of prefixing unstandardised parameters with "X-" or similar constructs in media types, mail and HTTP header fields, vCard properties and other text-named parameters.
  • Its verdict is blunt: "In practice, that convention causes more problems than it solves." Implementations "MUST NOT make any assumptions about the status of a parameter ... based solely on the presence or absence of 'X-'".
  • The replacement is registry work rather than a naming rule: creators of new parameters should assume their names may become standard, choose meaningful names, and protocol designers should establish registries with simple registration procedures.

A name that carried its own passport

For thirty years the internet encoded a fact in the spelling of a word. A header called X-Foo was unofficial, exploratory, somebody's local experiment. A header called Foo had survived a standards process. Reading the name told you which world you were in.

The convention predates the modern IETF, it appears across unrelated protocols, and it was cheap: no registry lookup, no governance cost, just a prefix that a reader could interpret.

Why the passport was forged so often

The prefix failed in two directions, and both are documented in the 2012 memo's reasoning. Parameters that were never meant to be standard acquired the prefix and then became the thing everybody implemented, so the label outlived the absence of standards status. Parameters that did reach a standards process sometimes kept their X- name because changing it would break deployments.

The result was a marker that meant nothing reliable. Implementations that treated X- as evidence of instability were wrong often enough to be a hazard.

The 2012 verdict

RFC 6648 does not argue that the prefix was a bad idea in 1980. It argues that the idea has stopped paying, and it removes the incentive to keep using it: new parameters should not carry the prefix, and implementations should stop inferring anything from it.

The rule for implementers is unusually direct for a Best Current Practice. Do not make assumptions about a parameter's status based on its name. If you need to know, look it up.

What replaces the prefix

The document moves the work into registries. Creators should pick names that are meaningful and currently unused, and should assume the name may eventually become public and widely deployed. Protocol designers should build registries with "simple, clear registration procedures", so the status of a parameter is a fact held somewhere other than its spelling.

That is more expensive than a prefix. It is also the only version that can be maintained, because a registry can be corrected and a naming convention cannot.

The cost of taking a marker out of a name

Once the prefix is gone, the status of a parameter is no longer visible at a glance. A reader of a specification now has to check a registry, and a developer writing a parser has to decide what to do with names that used to encode advice.

The trade is honest but it is a trade. The internet spent thirty years with a one-character signalling system that everybody used and nobody could trust, and replaced it with a registry that few people enjoy consulting and everybody can check.