Re: gzipped content in LivePages
Werner Thie <[email protected]> Fri, 28 May 2010 21:12:13 -1000
| Newsgroups | gmane.comp.python.quotient.dev |
|---|---|
| Organization | THIEngineering AG |
| Message-ID | <[email protected]> |
Tristan Seligmann wrote: > On Sat, May 29, 2010 at 6:03 AM, Werner Thie <[email protected]> wrote: >> Is there an easy way to switch to gzipped content in either nevow or >> twisted, helping a lot with delivering 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. Hmmm, thanks for the enlightening and you make me wonder - didn't I see either a comment or a post some long time ago which said that reverse proxying of LivePages does not work - '...because the server need more control over the connection...' or so? That's why I never attempted to do reverse proxying with LivePages. Thxs, Werner