question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Enable text compression (gzip)

See original GitHub issue

I’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:closed
  • Created 5 years ago
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

4reactions
JoshuaWalshcommented, Mar 14, 2019

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.

1reaction
jarizcommented, Mar 14, 2019

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?

Read more comments on GitHub >

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

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found