Home > Questions and Answers > General Questions

How to Enable Gzip Compression on AWS Cloudfront for Landers? (4)


05-19-2021 09:42 PM #1 louist (Member)
How to Enable Gzip Compression on AWS Cloudfront for Landers?

Hey everyone,

In the process of optimizing my landers for speed and the top thing left I need to do that comes up in Google Page Speed Insights is I need to enable text compression with Gzip, deflate, or brotli. Have looked around everywhere to see the solution, and I have already edited the behaviors in AWS CloudFront to compress objects automatically.

However, when running website tests on GiftofSpeed Gzip checking tool, the Gzip compression is still not enabled. Wondering what the solution is here and how I can enable text compression to speed up my landers. Appreciate any help.

Thanks


05-19-2021 11:35 PM #2 matuloo (Legendary Moderator)

This sounds like a good question for our tech ninja: @jeremie do you happen to know how to do this or have some other advice?


05-20-2021 01:30 AM #3 jeremie (Moderator)

Here you have a list of lots of reasons that could cause CloudFront not to compress:
https://docs.aws.amazon.com/AmazonCl...ssedFiles.html

if needed, send screenshots or a link so that I can have a look.


05-20-2021 01:43 AM #4 louist (Member)

After looking over the guide, it turns out it was just the simple fix of updating the cache policy after setting it to 0 when I was editing the code.

Thanks for the help.


Home > Questions and Answers > General Questions