
Hi
There must be an easy answer for this, it just eludes me. After some digging in the source code it looked like this will be handled automatically for static resources in twisted.web
Hitting http://www.gidnetwork.com/tools/gzip-test.php shows that this is not the case, response headers for my LivePage site are set to
status HTTP/1.0 200 OK date Sun, 16 May 2010 00:50:29 GMT cache-control no-store, no-cache, must-revalidate content-type text/html; charset=UTF-8 pragma no-cache server TwistedWeb/10.0.0
Is there an easy way to switch to gzipped content, helping a lot with delivering more and more JScript code to the user (obfuscated and all I could squeeze out another factor of three)
Thank you, Werner

On Sunday 16 May 2010, Werner Thie wrote:
There must be an easy answer for this, it just eludes me. After some digging in the source code it looked like this will be handled automatically for static resources in twisted.web
Do the client headers tell that it is willing to accept gzip encoding?
Bye, Maarten

Werner Thie wrote:
There must be an easy answer for this, it just eludes me. After some digging in the source code it looked like this will be handled automatically for static resources in twisted.web
Hitting http://www.gidnetwork.com/tools/gzip-test.php shows that this is ...
Is there an easy way to switch to gzipped content, helping a lot with delivering more and more JScript code to the user (obfuscated and all I could squeeze out another factor of three)
Thank you, Werner
Hello Werner, hello all, this is also very interesting for me, but I did not found a way. Here is probably a part of the solution: http://www.mail-archive.com/twisted-web@twistedmatrix.com/msg01694.html but I did not get it to work with Athena resp. nevow.rend.Page. Any idea?
Thank you, Paul

I'm using this to serve up my static content:
http://github.com/jrydberg/edgy/blob/master/src/edgy/web/static.py
It's for twisted.web and not nevow.
Cheers, Johan
On 5/16/10 12:01 PM, Paul Reznicek wrote:
Werner Thie wrote:
There must be an easy answer for this, it just eludes me. After some digging in the source code it looked like this will be handled automatically for static resources in twisted.web
Hitting http://www.gidnetwork.com/tools/gzip-test.php shows that this is ...
Is there an easy way to switch to gzipped content, helping a lot with delivering more and more JScript code to the user (obfuscated and all I could squeeze out another factor of three)
Thank you, Werner
Hello Werner, hello all, this is also very interesting for me, but I did not found a way. Here is probably a part of the solution: http://www.mail-archive.com/twisted-web@twistedmatrix.com/msg01694.html but I did not get it to work with Athena resp. nevow.rend.Page. Any idea?
Thank you, Paul
Twisted-web mailing list Twisted-web@twistedmatrix.com http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-web
participants (4)
-
Johan Rydberg
-
Maarten ter Huurne
-
Paul Reznicek
-
Werner Thie