Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

240
Vistas
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 Respuestas
Responde la pregunta

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 Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda