[Mongrel] Mongrel/Apache mod_deflate question

Vincent Bray noodlet at gmail.com
Sun Jun 10 15:38:01 EDT 2007

On 10/06/07, Chih Chao Lam <chao at nextsmallthings.com> wrote:
> Thanks for the link. However, does mod_deflate cache the files it
> compresses? For static files, would it be compressing over and over, perhaps
> hundreds of times per second? Is there a way to avoid this?

mod_deflate doesn't save the compressed response to requests for
static files. "the unix way" to do this would be to periodically run
find/gzip instead and allow mod_mime & mod_negotiation to serve the
gzipped alternative file (AddEncoding & Options MultiViews iirc).
Alternatively, mod_cache will do the job too, as long as you tell
apache what expiries (mod_expires) are valid for your static content.
Doing the latter is good practice anyway as it'll offload some
requests for clients that don't support compression.


More information about the Mongrel-users mailing list