Forum: NGINX How to turn on chunked_transfer_encoding for static files

Posted by azure peng (Guest)
on 2012-11-17 04:59
(Received via mailing list)
Hi, All,
         I use nginx 1.2.4
         I want to use chunked_transfer_encoding sending to client for 
static files  , but I found the "chunked_transfer_encoding" is not work 
for static files ( found code in ngx_http_chunked_header_filter() ) , I 
change the code for call  ngx_http_clear_content_length() ) , and the 
chunked function works .


   BUT the nginx send a very big chunk (just equal to file size) ,  I 
want set the chunk size to 1MB , how to set it ?
Posted by Valentin V. Bartenev (Guest)
on 2012-11-17 15:32
(Received via mailing list)
On Saturday 17 November 2012 07:58:49 azure peng wrote:
> Hi, All,
>          I use nginx 1.2.4
>          I want to use chunked_transfer_encoding sending to client for
> static files  , but I found the "chunked_transfer_encoding" is not work
> for static files ( found code in ngx_http_chunked_header_filter() ) , I
> change the code for call  ngx_http_clear_content_length() ) , and the
> chunked function works .
> [...]

I'm really curious, why do you want this?

 wbr, Valentin V. Bartenev

--
http://nginx.com/support.html
http://nginx.org/en/donation.html
Posted by azure peng (Guest)
on 2012-11-18 10:10
(Received via mailing list)
Just for follow the customer's technique standard :<
Please log in before posting. Registration is free and takes only a minute.
Existing account (Switch to SSL-encrypted connection)
NEW: Do you have a Google/GoogleMail or Yahoo account? No registration required!
Log in with Google account | Log in with Yahoo account
No account? Register here.