gzip response in TG 2+

17 views
Skip to first unread message

Anders

unread,
Jun 9, 2011, 7:15:05 PM6/9/11
to turbo...@googlegroups.com
Hi all,

Is there a TG recipe for gzip'ing a response during development, i.e., using paster serve ? 

While it is trivial in a production server, I'm not sure how to do it during development. Should I be wrapping my requests/responses
with Paste's make_gzip_middleware or is there another way ?

Many Thanks,
A.

Diez B. Roggisch

unread,
Jun 10, 2011, 5:13:28 AM6/10/11
to turbo...@googlegroups.com
On Friday, June 10, 2011 01:15:05 am Anders wrote:
> Hi all,
>
> Is there a TG recipe for gzip'ing a response during development, i.e.,
> using paster serve ?

Not that I'm aware of.


>
> While it is trivial in a production server, I'm not sure how to do it
> during development. Should I be wrapping my requests/responses
> with Paste's make_gzip_middleware or is there another way ?

Sounds good to me, just use that. You should be able to configure it so that
it's just for development, but on production you use e.g. apache for that.

Diez

Reply all
Reply to author
Forward
0 new messages