Can Apache 2 be configured to start sending gzipped data early?

Posted by rikh on Server Fault See other posts from Server Fault or by rikh
Published on 2010-01-13T11:15:02Z Indexed on 2010/04/10 3:03 UTC
Read the original article Hit count: 325

Filed under:
|
|
|

We have Apache set up to gzip compress html pages before they are sent to the client browser.

However, some of our pages are slowish to generate and it seems that Apache is holding on until it has the complete page, compressing it, then sending it to the browser.

There are big chunks of the page (the main important bits) that are actually generated and output fairly quickly.

Is it possible to configure Apache to start compressing and send data for the page as soon as the script starts outputting something? Is it is, can you offer any help is how to do this?

If not, can you suggest any other way to get gzip compression working for the server?

The scripts that generate the pages are written in PHP. We are using Apache 2.0 on Linux.

© Server Fault or respective owner

Related posts about apache

Related posts about gzip