Location Redirects: More a Claim Than an Offer of Choice
How-To
You asked for one page and a different one arrived, chosen for the country your address appears to sit in. The site did not improvise that. It has a section number, a name, and a list of drawbacks written down by the people who specified it.
Four kinds of redirect, and only one offers a choice
Start where the behaviour is defined rather than where you met it. HTTP’s core semantics were republished in June 2022 as RFC 9110, an Internet Standard, and the passage covering the 3xx codes opens by refusing to treat them as one thing: “There are several types of redirects”. Four follow, and they are doing different jobs.
The first is an assertion about where something lives. It covers “Redirects that indicate this resource might be available at a different URI”, and four codes carry it. Nothing in that description mentions you, your preferences or your circumstances.
Only the second puts a question back to you. It covers “Redirection that offers a choice among matching resources capable of representing this resource”, and exactly one code sits in it. The third covers a different resource standing in as an indirect answer. The fourth points at something your own side is already holding.
Count the ones that consult you and the answer is one. A regional or language edition you did not ask for reaches you as the first kind whenever a destination comes attached to it, so you are being told the thing you wanted is elsewhere, by a class of message that keeps a separate code for the case where alternatives are laid out instead.
Acting on it is optional, too, in a way the wording makes plain. Where a destination is supplied, the document says, your software “MAY automatically redirect its request” to it, with a caution attached for anything beyond a plain retrieval. The detour you experience as one event was therefore decided twice, once by the site and once by whatever software followed it for you.
Inputs a server is allowed to select on
The machinery behind a regional edition is named a few sections earlier, and redirection is not the name. It is content negotiation, which the specification splits into three patterns. In the first, the one at work here, “the server selects the representation based upon the user agent’s stated preferences”. In the second, “the server provides a list of representations for the user agent to choose from”.
A single sentence in that section does the real work. Describing how the picking is done, the document says selection is compared against the information supplied in the request, “including both the explicit negotiation header fields below and implicit characteristics, such as the client’s network address”.
Read that division carefully, because the inputs have just been sorted into two kinds and yours has gone into the second. Fields exist for the things you can state: media type, character set, encoding and language. Each has a defined name and syntax, and a weighting parameter, so you can rank preferences rather than merely list them.
There is no field for where you are. Place is not a dimension you are given any way to speak about, and the consequence is written into the same section, because on requests that leave a negotiation field out “a request that does not contain the field implies that the sender has no preference on that dimension of negotiation”.
Apply that honestly and the position is stark. On every dimension the protocol lets you address, silence means you expressed nothing. On the one that produced your detour there was nothing to be silent about. What the address does support is an estimate, and how coarse that estimate is depends on the records it was assembled from. Where that copy of a site physically sits is a further question again, one the path settles rather than the page.
Serious disadvantages, in the specification’s own words
The useful discovery is that the document does not present this as a good design. Having defined server-driven selection, it turns on the idea in five words and a colon: “Proactive negotiation has serious disadvantages”. The list runs to four.
Impossibility, rather than poor implementation, heads the list. A server cannot work out what would be best for a given person, because “that would require complete knowledge of both the capabilities of the user agent and the intended use for the response”. Whether you want to read a page on a screen or print it on paper is not in the request.
Second on that list is a cost to you. Having your software describe itself every time is called inefficient and “a potential risk to the user’s privacy”, a judgement sitting in a protocol specification rather than a policy document. Third comes the burden on whoever implements it. Last comes the quiet one: “It limits the reusability of responses for shared caching”.
And the reliability of the arrangement is disclaimed outright. Preferences you did state may not survive, because a server “might not implement proactive negotiation for the requested resource”, or may reason that “sending a response that doesn’t conform to the user agent’s preferences is better than sending a 406 (Not Acceptable) response”. Something beats nothing, so you get something.
One field would at least show the workings, and the document records that a Vary field “is often sent in a response subject to proactive negotiation to indicate what parts of the request information were used in the selection algorithm”. Often rather than always, and it names dimensions rather than values. Even with it in hand, the protocol takes no position on whether what arrived is the page you wanted, since “HTTP is not aware of the resource semantics” and sameness over time “is determined entirely by whatever entity or algorithm selects or generates those responses”.
The code that hands the choice back
There is a status code for the honest version of this, and reading its entry is faintly deflating.
It is the one code in the class that offers alternatives, and its description has the server publishing them “so that the user (or user agent) can select a preferred representation”. The intent is stated plainly: in sending it, “the server desires that the user agent engage in reactive negotiation to select the most appropriate representation(s) for its needs”. A site with a British edition and an American one could answer with both and let you take one.
What became of it is recorded in the same entry. The format such a list would take was never settled, because “A specific format for automatic selection is not defined by this specification”. Two candidate mechanisms were proposed and both abandoned, the note recording that “lack of deployment and disagreement over syntax led to both URI and Alternates (a subsequent proposal) being dropped from this specification”. One surviving route gets a mention, and its prospects are summed up in a phrase: “deployment is a chicken-and-egg problem”.
Negotiation itself admits the same gap. For the pattern where you do the choosing, the specification says it “does not define a mechanism for supporting automatic selection, though it does not prevent such a mechanism from being developed”. A door was left open in 2022 and the room behind it is empty.
So the asymmetry you are living with was not an oversight. One pattern got a full set of fields and weightings and went everywhere. Its counterpart got no format anybody agreed on, and still waits on software implementing something nothing requires. The polite version lost on deployment rather than on merit.
Whether it sticks is in the status code
If the detour is the site’s business, one thing genuinely is not: how long your own software keeps obeying it. That is carried by the code, and the permanent and temporary ones say opposite things.
The permanent code asks you to forget the address you typed. Its entry reads “the target resource has been assigned a new permanent URI and any future references to this resource ought to use one of the enclosed URIs”, and such a response “is heuristically cacheable” unless the method definition or explicit cache controls say otherwise. A regional edition announced that way is asking to be remembered as the real address, with no further asking.
Its temporary counterpart says the reverse in one clause. The resource “resides temporarily under a different URI”, so “the client ought to continue to use the target URI for future requests”. A site using it sends you on every time, and the thing you typed stays the thing you ask for. Whether your own side is being asked to replace the address or to keep it is where the pair diverge, and the loop case is anticipated as well, since a client “SHOULD detect and intervene in cyclical redirections”.
Of the two kinds of input the specification named, one is yours. Beside everything a site infers about your machine, our own readout prints the language setting your own side carries. That is the single dimension in this arrangement where you supplied a value instead of leaking it. The other input can be inspected in a cruder form, because a reputation readout shows you what a site is given about your address and none of what it concludes.
Neither of those is the question a regional redirect answers. That answer came from a field you were never given to fill in, reached by a design its own specification lists serious disadvantages for, and delivered in a class of message that keeps a code for asking you and never agreed a format for it. Start with which code carried it, because that decides whether you argue with a site once or every morning.