Re: [Simpleweb-Support] HTTP Compression
Brought to you by:
niallg
From: petite_abeille <pet...@ma...> - 2005-12-17 13:27:54
|
Hello, On Dec 14, 2005, at 22:45, Niall Gallagher wrote: > Take a look a http://zoe.nu, this uses compression > with Simple. ZO=CB uses a very straightforward approach: http://dev.alt.textdrive.com/file/ZOE/Frameworks/SZApp/=20 SZContentEncoder.java For something slightly more sophisticated (including conditional =20 responses), take a look at LWResponse:handleContent(): http://dev.alt.textdrive.com/file/LW/LWResponse.lua > I did implement compression in Simple, I > was not impressed with the performance results and it > added complexity I did not need. =46rom my personal experience, response compression do make sense when =20= the network bandwidth is either a bottleneck or a significant monetary =20= cost of running your application. Or both :) Of course, your mileage =20= may vary according to your particular circumstances. Regarding if this should be supported by an HTTP framework =20 "out-of-the-box", I would venture that yes, it should :) "The third principle is that web.py should, by default, do the right =20 thing by the Web" [sic] -- Aaron Swartz, "Rewriting Reddit", December 6 2005 http://www.aaronsw.com/weblog/rewritingreddit As Spike Lee might have said [1], "doing the right thing" would include =20= handling most, if not all, the drudgery of HTTP mannerisms. Cheers -- PA, Onnay Equitursay http://alt.textdrive.com/ [1] http://www.imdb.com/title/tt0097216/ |