maxim / html_press

API and Rack middleware for HTML compression with caching support.

This URL has Read+Write access

name age message
file .document Tue Oct 20 02:20:04 -0700 2009 Initial commit to html_press. [maxim]
file .gitignore Tue Oct 20 02:20:04 -0700 2009 Initial commit to html_press. [maxim]
file LICENSE Tue Oct 20 02:20:04 -0700 2009 Initial commit to html_press. [maxim]
file README.rdoc Tue Oct 20 14:47:05 -0700 2009 Rebuild inline styles when converting. [maxim]
file Rakefile Tue Oct 20 12:29:30 -0700 2009 Fix bug with plugin version. [maxim]
file VERSION Tue Oct 20 12:19:45 -0700 2009 Version bump to 0.1.0 [maxim]
directory bin/ Tue Oct 20 12:18:43 -0700 2009 Add some useful source code. [maxim]
file html_press.gemspec Tue Oct 20 14:47:05 -0700 2009 Rebuild inline styles when converting. [maxim]
file init.rb Tue Oct 20 12:18:43 -0700 2009 Add some useful source code. [maxim]
directory lib/ Tue Oct 20 15:11:51 -0700 2009 Perform caching in new thread because no reason... [maxim]
directory tasks/ Tue Oct 20 13:07:56 -0700 2009 Add rake task for purging cache. [maxim]
directory test/ Tue Oct 20 12:18:43 -0700 2009 Add some useful source code. [maxim]
README.rdoc

Rack::HTMLPress

This middleware aims to compress the crap out of your HTML on-the-fly. It squeezes out every last kilobyte of traffic for your users. In some cases it can save ~50kb per request which may amount to 5 seconds of wait for a dial up user somewhere in the world. To prevent re-compressing on every request it uses checksum-based caching mechnism easily swappable for any key-value store. Among unique awesome features HTMLPress is smart enough to ignore rails authenticity tokens when it caches HTML. This avoids constant re-compressing on form pages.