Range request not working for gzipped content

I found that whenever Content-Encoding: gzip is on. Nginx will return
200
instead of 206. When gzip is off, nginx will return range request
normally.

Is that the expected behavior for nginx?

Thanks
Don

Posted at Nginx Forum:

On Friday 22 August 2014 15:10:03 badtzhou wrote:

I found that whenever Content-Encoding: gzip is on. Nginx will return 200
instead of 206. When gzip is off, nginx will return range request normally.

Is that the expected behavior for nginx?

Yes.

See here for explanation:
http://mailman.nginx.org/pipermail/nginx/2011-June/027712.html

wbr, Valentin V. Bartenev