Forcing Nginx to send Content-Length headers when serving static files with gzip
It turns out that when using dynamic Gzip then the Content-Length
header is not sent, as the Transfer-Encoding
is chunked
. Pre-compressing my files and switching to static Gzip allows Nginx to know ahead of time the file size and send an appropriate Content-Length
header.