>>>>> "beebee" == beebee  <[email protected]> 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
_______________________________________________
busybox mailing list
[email protected]
http://lists.busybox.net/mailman/listinfo/busybox

Reply via email to