Prevent Apache Distribution Using gzip Content

When using mod_deflate in Apache2, Apache will load the gzipped content by setting the Transfer-encoding: chunked header. Although this leads to faster loading times, I cannot display a progress bar.

If I handle the compression myself in PHP, I can fully migrate it and set the Content-length header so that I can display a progress bar for the user.

Is there any parameter that would change the default behavior for Apache so that Apache sets the Content-length header instead of highlighting the response so that I don't need to handle the compression myself?

+3
source share
1 answer

, sendBufferSize, , , .

chunked content HTTP/1.1, HTTP/1.0 ( chunked: " HTTP/1.0." ), force-response-1.0 apache. PHP , PHP, .

, , w3c : " HTTP/1.1 " " ", , , "", , . , HTTP/1.0, , , jQuery, .

, HTTP/1.0 , "" , , HTTP/1.0 "host", .

:, , , , Apache env PHP-. 1.0 gzipped, , HTTP/1.0 ( HTTP/1.0 gzip).

+1

All Articles