Plugins - Better Output Compression
Add to favoritesProvide a filter to perform gzip and deflate compression of action output. Handles proxy caching and component rendering correctly.
Contributors:
Tom Fakes - Initial simple implementation, plugin implementation Dan Kubb - Handle multiple encodings, correct response headers Sebastian - Handle component requests


I've discovered that IE6 doesn't gracefully handle Rails' Cache-Control header ('no-cache') with gzipping. See http://www.justsuppose.com/2007/09/more-flash-and-ie-6-gotchas-2032-error.html for more details. To fix this, I added this code just below ln 49 of output_compression.rb: if controller.response.headers['Cache-Control'] == 'no-cache' controller.response.headers['Cache-Control'] = 'no-cache, no-store, must-revalidate, max-age=-1' end