What is the purpose of the "q" values in the HTTP "Accept" request header?
http, http-headers
Solution
Each media-range MAY be followed by one or more accept-params, beginning with the "q" parameter for indicating a relative quality factor. The first "q" parameter (if any) separates the media-range parameter(s) from the accept-params. Quality factors allow the user or user agent to indicate the relative degree of preference for that media-range, using the qvalue scale from 0 to 1. The default value is q=1
The information is available here
A nice explanation can be found here as well.
Problem
I have made a http request using Firefox.Now the request header shows the following: ``` Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8 ``` But curious to know what is `q=0.9,*/*;q=0.8`