Static Asset Caching and Compression on Heroku
One of the best aspects of Heroku’s cedar stack is thecontrol and flexibility it offers you. Unfortunately, this also means you are on the hook for properly configuring many items in your app.
An example of this is proper HTTP caching and gzip compression.
For static asset caching, Heroku provides a great detailed support article, Using Rack::Cache with Memcached for Static Asset Caching in Rails 3.1+ on configuring your rails app and using memecached to help speed things up.
On the compression side, there is a great simple article by Gaurish Sharma, Enable gzip compression on Heroku
Total time to setup and deploy both…roughly 2 minutes.