I currently have the following:
use Rack::Rewrite
use Rack::Cache, {:verbose=>true, :metastore=>\"memcached://localhost:11211/rack-cache/meta\", :entitysto
The simplest way to insert it is directly in your config.ru:
require ::File.expand_path('../config/environment', __FILE__)
use Rack::Deflater
run My::Application
To confirm it is working start up your app and hit it with curl:
curl -i --head "Accept-Encoding: gzip,deflate" http://localhost:5000
Which should return the headers:
Vary: Accept-Encoding
Content-Encoding: gzip
And a beautifully gzipped response.