Enable text compression (gzip)
See original GitHub issueI’m using gatsby-plugin-s3
to deploy my website and I’m getting the following warning when I run Google PageSpeed Insights
Enable text compression
how do I enable gzip compression?
Issue Analytics
- State:
- Created 5 years ago
- Comments:6 (4 by maintainers)
Top Results From Across the Web
Enable text compression - Chrome Developers
Enable the Gzip Page Compression setting (System > Global configuration > Server). # WordPress. Enable text compression in your web server ...
Read more >How to Enable GZIP Compression for Faster Web Pages
NGINX server software only compresses HTML files by default. If your server uses NGINX, you can enable GZIP compression on your site's files...
Read more >How to Enable GZIP Compression to Speed Up WordPress Sites
To enable GZIP compression on Apache servers, you need to use its mod_filter and mod_deflate modules and configure them properly with the right ......
Read more >Lighthouse: Enable text compression - GTmetrix
For WordPress users, the easiest way to enable Gzip compression is by using a caching plugin that supports enabling Gzip. For example, WP...
Read more >How To Optimize Your Site With GZIP Compression
In your browser: In Chrome, open the Developer Tools > Network Tab (Firefox/IE will be similar). Refresh your page, and click the network...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Are you using CloudFront? If you’re using CloudFront, you can enable it by editing your Distribution’s Behaviour settings. Set the “Compress Objects Automatically” setting to Yes.
If you’re not using CloudFront, you may be able to do something like this. However, I suspect that this will make it impossible to load your website in any browser that doesn’t support gzip compressed text. I would highly recommend using CloudFront.
Fair. It’s just kind of a bummer that there’s a lot we can’t provide by default with the plugin right now because CF is not part of it’s scope.
But… maybe we should make CF part of it’s scope. (either through the terraform stuff you mentioned earlier or just through the AWS SDK) You’re not gonna use S3 without CF in production eitherway, so why not?