3

Nginx seems to disable chunking when sending files that are pre-compressed ala gzip_static on

Is there any trick to force it to chunk anyway? Chunks seems to give some browsers the illusion of faster rendering because they might use the chunk point as a render refresh point.

HTTP/1.1 should allow any file to be sent chunked, static or not.

Or perhaps this is a limitation with sendfile OS acceleration?

ck_
  • 429
  • 7
  • 19
  • `Chunks seems to give some browsers the illusion of faster rendering because they might use the chunk point as a render refresh point.` Any reference to illustrate this statement? – Pothi Kalimuthu Sep 14 '13 at 07:21
  • 1
    facebook is a perfect example of that, i know this post is old but im looking for the awnser to this question also – Paul Scheltema Feb 05 '14 at 17:14

1 Answers1

1

It follows from the way sendfile() works:

Note, however, that because the data never touches user space it’s not subject to the filters in the regular NGINX processing chain. As a result, filters that change content, for example the gzip filter, have no effect.

https://www.nginx.com/blog/tuning-nginx/

Joó Ádám
  • 255
  • 3
  • 10