How can I pre-compress files with mod_deflate in Apache 2.x?
Posted
by Otto
on Stack Overflow
See other posts from Stack Overflow
or by Otto
Published on 2008-09-16T18:30:41Z
Indexed on
2010/04/19
18:33 UTC
Read the original article
Hit count: 291
I am serving all content through apache with Content-Encoding: zip
but that compresses on the fly. A good amount of my content is static files on the disk. I want to gzip the files beforehand rather than compressing them every time they are requested.
This is something that, I believe, mod_gzip
did in Apache 1.x automatically, but just having the file with .gz next to it. That's no longer the case with mod_deflate
.
© Stack Overflow or respective owner