GZip compression in Perlbal
Ask Bjørn Hansen
ask at develooper.com
Wed Mar 5 21:20:07 UTC 2008
On Mar 5, 2008, at 11:18, Mark Smith wrote:
> The idea is then that these small files are just stored in memory and
> we don't have to re-gzip them every time [...]
What I do (with Apache) is pre-compress the files and have Apache just
send the ".gzip" file when it's there.
AddEncoding gzip .gzip
RewriteCond %{HTTP:Accept-Encoding} gzip
RewriteCond %{DOCUMENT_ROOT}/%{REQUEST_FILENAME}.gzip -f
RewriteRule ^(.*)$ $1.gzip [L]
Compressing static files at request time seems slightly insane ...
- ask
--
http://www.askbjoernhansen.com/
More information about the perlbal
mailing list