Skip to content
API and Rack middleware for HTML compression with caching support.
Find file
Latest commit 4ae40ec @maxim Add warning to README.



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.

WARNING: Not production ready.

Something went wrong with that request. Please try again.