Welcome! Log In Create A New Profile

Advanced

Re: How to disable chunked transfer-encoding

Maxim Dounin
June 04, 2009 12:58PM
Hello!

On Fri, Jun 05, 2009 at 12:23:54AM +0800, Zhang,Tony wrote:

> Hi
>
> I found that Nginx set chunked transfer-encoding as default, so how can I disable this transfer-encoding, because I am serving static content. And by the way, is it a little bit harmful to use chunked transfer encoding on serving static content?

Support for chunked encoding is required for HTTP/1.1 clients,
and nginx doesn't use it for HTTP/1.0 clients (as required by RFC
2616 too), so it should be safe.

But the question is - why chunked used in your case. It's not
used by nginx for static content with known length. Possible
reasons include SSI processing truned on and/or gzip enabled
(since resulting length of the response isn't known while sending
headers, and chunked transfer encoding is the only way to keep
connections alive in this case).

Maxim Dounin
Subject Author Posted

How to disable chunked transfer-encoding

Zhang,Tony June 04, 2009 12:23PM

Re: How to disable chunked transfer-encoding

Maxim Dounin June 04, 2009 12:58PM

Zhang,Tony June 04, 2009 02:11PM

Re: 答复: How to disable chunked transfer-encoding

Maxim Dounin June 04, 2009 02:49PM

答复: 答复: How to disable chunked transfer-encoding

Zhang,Tony June 04, 2009 11:39PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 169
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready