I’ve noticed this parameter on the Accept request header as:
Accept: application/json, text/javascript, */*; q=0.01
I am a bit curious about what the q=0.01 means?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The
qattribute of theAcceptheader tells the web server which type of content the client prefers to receive in the event that the server can satisfy the request with multiple types of content. The exact value does not matter, only the relative values between multipleAcceptheaders.As long as there is only one
Acceptheader,qdoes not actually do anything. However, if there are more than one it serves to specify priority. For example (taken from here), assume you have the headers:This may be interpreted as “if you have basic audio, send it; otherwise send me some other audio, or failing that, just give me what you’ve got.”
Of course noone actually forces the server to treat these headers as described (or even pay any attention to them for that matter).