Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

273
Visualizações
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 Respostas
Responde à pergunta

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 Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda