title: Any way to serve gzip assets from heroku?
body: <p>I'm wondering if there is any way to get the Rails webserver (thin) to serve the <strong>*.gz</strong> files the asset pipeline creates. As I understand, those have a higher compression level than that of <code>Rack::Deflater</code>, which only works with <code>serve_static_assets</code> from within the rackup file and not in <code>config.middleware</code>.</p>
  
  <p>A less optimal solution might be to change the default compression level of <code>Zlib</code> which is what <code>Rack::Deflater</code> references. It should only need to gzip once, then it goes to <code>Rack::Cache</code>, then hopefully a CDN.</p>
  
  <p>A second less optimal solution might be a <code>Rack::Rewrite</code>.</p>