Prevent Apache from chunking gzipped content
Posted
by
Bear
on Stack Overflow
See other posts from Stack Overflow
or by Bear
Published on 2010-12-27T13:11:02Z
Indexed on
2010/12/27
23:54 UTC
Read the original article
Hit count: 179
apache
|compression
When using mod_deflate in Apache2, Apache will chunk gzipped content, setting the Transfer-encoding: chunked header. While this results in a faster download time, I cannot display a progress bar.
If I handle the compression myself in PHP, I can gzip it completely first and set the Content-length header, so that I can display a progress bar to the user.
Is there any way to change Apache's behavior, and have Apache set a Content-length header instead of chunking the response, so that I don't have to handle the compression myself?
© Stack Overflow or respective owner