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

268
Views
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 answers
Answer question

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 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!