snapCloud icon indicating copy to clipboard operation
snapCloud copied to clipboard

Enable gzip in nginx

Open mburns opened this issue 2 years ago • 1 comments

took a swing at #51, untested

Two knobs to consider adjusting:

  • gzip_min_length - recommendations can range from (256, 500, 1024) bytes.
  • gzip_comp_level - set at 6, but not sure this is even worth setting explicitly (default is is 1)

Sources:

  • https://gist.github.com/v0lkan/90fcb83c86918732b894
  • https://www.digitalocean.com/community/tutorials/how-to-improve-website-performance-using-gzip-and-nginx-on-ubuntu-20-04
  • https://ubiq.co/tech-blog/how-to-enable-nginx-gzip-compression/

mburns avatar Jun 26 '23 08:06 mburns

Thank you for your contribution. However, I am a bit hesitant to spend time testing this when you explicitly say you haven't tested it yourself :)

Any chance you can try your code first, and get back to us?

Thanks!

bromagosa avatar Oct 02 '23 08:10 bromagosa