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

266
Vistas
Why isn't my cache behaviour for Amazon CloudFront gzipping my JavaScript?

I'm using CloudFront and have an S3 bucket with some css, images and js:

my S3 bucket

I checked on webpagetest and saw my css, images and js are not being gzipped, for example, all.js, the 8th entry here:

my results

I read that I must create a cache behaviour, so I did, compressing, or so I thought, all js automatically:

my Cache Behaviour

However, still the same results in webpagetest. I invalidated my js, waited but still I get the same result.

enter image description here

I'm clearly missing something here! I haven't gzipped my files in the S3 bucket - is that a problem? Can anybody spot my mistake(s) and tell me how to have my css, images and js from CloudFront gzipped? Thanks.

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

0

I hope this helps somebody. The problem is now solved.

I made the following Invalidation:

Invalidation

And then deleted the old Behaviours and added 3 new ones:

New Behaviours

Now all my resources are Gzipped:

Success!

about 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