Q
Why do most browsers' User-Agent strings begin with 'Mozilla/5.0'?
-
A
Because it identifies Firefox
-
B
Because it is required by HTTP/2
-
C
Because they are all built by Mozilla
-
D
For historical compatibility, because sites once served better content to 'Mozilla' (Netscape) browsers
Correct Answer:
D. For historical compatibility, because sites once served better content to 'Mozilla' (Netscape) browsers
Explanation:
This is why detecting browsers by User-Agent string is unreliable.