Re: gzipped content in LivePages
Tristan Seligmann <[email protected]> Sat, 29 May 2010 08:11:25 +0200
| Newsgroups | gmane.comp.python.quotient.dev |
|---|---|
| Message-ID | <[email protected]> |
On Sat, May 29, 2010 at 6:03 AM, Werner Thie <[email protected]> wrot= e: > Is there an easy way to switch to gzipped content in either nevow or > twisted, helping a lot with =A0delivering more and more JScript code to > the user (obfuscated and all I could squeeze out another factor of three) You should be able to wrap the root of your site (or just part of it, if you prefer), with nevow.compression.CompressingResourceWrapper. Also, don't forget to place a JSModules resource at a permanent location and use that with your LivePages, so that the same JS module will be served up with the same URL for each page. Alternatively, you could do what I do for most of my sites, and run nginx in front of Twisted as a reverse proxy; you can even make use of its caching features to offload the actual serving of the JS from Twisted, potentially taking some load off your server. -- = mithrandi, i Ainil en-Balandor, a faer Ambar