Search code examples
ruby-on-railsoptimizationgziphttp-compression

How do I gzip webpage output with Rails?


What is the best plugin for Rails that gzips my webpage output?

Edit: The company I am hosting with has stated they will not install mod_deflate.


Solution

  • Unless you are running your Rails application without another webserver (which usually isn't a great idea), you should probably look at your webserver. All major webservers have options to enable gzip. For example, for Apache, you can use mod_deflate.