Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
Mozilla/5.0 (compatible; Konqueror/4.5; NetBSD 5.0.2; X11; amd64; en_US) KHTML/4.5.4 (like Gecko)

the locale information is redundant information in information in the User-Agent header is

  • usually redundant, 
  • identifies the language variant of the software rather than the user's preferred locale, and
  • more often than not will be even missing:

    Code Block
    Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/60.0.3112.113 Safari/537.36

, the header will not contain it. Internally, Magnolia has no direct means how to check the existence of and use retrieve this kind type of locale information. The preferred locale information is communicated in via the Accept-Language header.

...

The first represents language expressed as a 2 or 3-character string, the second represents language as a full language tag, the third says "any language" (see Accept-Language and Language Tags in RFC-2616).

Request-URI


Configuring site locale

...