It's been a while so my knowledge of all these things is a little rusty, but iirc mod_compress operates on static files. web.py is an fcgi/wsgi app; lighttpd (which I assume you are talking about) just pipes it right through. Maybe Jan finally got around to releasing a new version of lighty where you can have it perform some deep inspection in the header files of your dynamic pages and determine whether or not it is suitable for compressing, but I would be surprised.
In related news, what you probably want is a caching proxy. They can do everything you want, and more. Try Squid; the learning curve is daunting but the super snappy pages are totally worth it (remember to make good use of cache-control headers in your web.py script! not just for your cache but for everyone's; this is performance priority nr 1, 2 and 3.) Greetings, Hraban 2010/11/15 KenCorey <[email protected]>: > Hi All, > > I've got mod_compress install, and for most of the types of file I've > listed in my configuration file it works great: > > ------------------------------------- > #### universal compress module > compress.cache-dir = "/var/cache/lighttpd/compress/" > compress.filetype = ("text/plain", "text/html", "application/ > x-javascript", "text/css") > > ### host-specific text > compress.cache-dir="/var/cache/projdir/" > ------------------------------------ > > However, the page itself is not compressed. > > With PHP, one must edit the php.ini file to enable compression on > dynamic pages. > > Is this possible with webpy generating a given page? > > Thanks, > > -Ken > > -- > You received this message because you are subscribed to the Google Groups > "web.py" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]. > For more options, visit this group at > http://groups.google.com/group/webpy?hl=en. > > -- You received this message because you are subscribed to the Google Groups "web.py" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/webpy?hl=en.
