Enable gzip compression on heroku, but don't compress images


A simple rack middleware, enabling compression of your assets and application in responses on Heroku. It saves CPU cycles on pointless compression of images and binary responses.

It also includes code from

Before serving a file from disk to a gzip-enabled client, it will look for a precompressed file in the same location that ends in ".gz". The purpose is to avoid compressing the same file each time it is requested.

Upload more screenshots

Please help extend the collection of screenshots. Just make a screenshot and upload it here. You don't need to register or anything.

Upload a screenshot

Hint: upload an image here from your clipboard with Ctrl-V


Install this software package

If the package is available for the distribution you are currently using on your computer then install the software by clicking on…

Install ruby-heroku-deflater