Seems like awkward placement. What about [this](http://robots.thoughtbot.com/content-compression-with-rack-deflater#rails-3-and-4)?