[PATCH] httpd: add option to send files using gzip content-encoding if available
Peter Korsgaard
jacmet at uclibc.org
Sun Jul 25 08:30:09 UTC 2010
>>>>> "beebee" == beebee <beebee at piments.com> writes:
Hi,
>> for i in `find /var/www -name \*.html' -o -name '*.css' -o -name '*.js'`;
>> do
>> gzip -c -9< $i> $i.gz
>> done
>>
>> Would work for most people.
>>
>> -- Bye, Peter Korsgaard
beebee> correct me if I'm wrong but I thought the BB goal was light and fast
beebee> rather than "simple". Missing out some of the less used options in std
beebee> tools is presumably to lighten the footprint , not to make things
beebee> simple.
Simple is imho also a very large part of it.
beebee> while it may take a few lines more code to check and maintain a cache
beebee> the runtime overhead would be minimal compared to the overhead of
beebee> gzipping files each and every time they are requested.
But the point of my implementation is NOT to gzip for every request,
only once manually when a file is added/edited.
--
Bye, Peter Korsgaard
More information about the busybox
mailing list