If you're using a Rack-based web framework you can very easily slim down your responses by compressing them.
To achieve this you just have to use the Rack::Deflater middleware, like so:
Yes, that's all there is to it!
Now any client that sets the
Accept-Encoding: gzip,deflate header will benefit from smaller responses.