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

157
Vistas
How do I set up a ServiceWorker on amazon S3?

I am trying to set up the service worker for a SPA I am making. Its hosted on AWS with S3.

Despite the file being in the correct place I still get the following errors

/service-worker.js:1 The script has an unsupported MIME type ('text/js'). https://djwdy6bk7t99o.cloudfront.net/service-worker.js

Failed to load resource: net::ERR_INSECURE_RESPONSE

over 4 years ago · Santiago Trujillo
1 Respuestas
Responde la pregunta

0

The service worker specification requires that the response for the service worker JavaScript file used in the registration be served with a "JavaScript MIME type" (e.g., Content-Type: application/javascript) header.

That's what I'd expect the default to be for files served by S3 with a .js extension, but perhaps you've previously overridden the default settings? This answer has some details about changing that setting back.

over 4 years ago · Santiago Trujillo 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