Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

230
Views
Why do browsers use `Accept: */*` for <script> tags, instead of application/javascript?

Firefox and Chrome would claim they prefer a html or xml document when doing the request for the page, like this (from Chrome):

Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9

and text/css for <link rel="stylesheet" type="text/css">, like:

Accept: text/css,*/*;q=0.1

But when it comes to <script src>, it becomes

Accept: */*

without claiming application/javascript despite it will accept only javascript.

Why would it behave like that ?

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

It reduces the size of the Accept header and thus saves some bandwidth leading to a performance boost.

See bug 170789

Also, it helps to minimize errors on sites expecting headers of fixed maximum length.

See IE and the Accept Header (IEInternals' MSDN blog)

about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!