up vote 1 down vote favorite
share [g+] share [fb]

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

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.

link|improve this question

feedback

migrated from superuser.com Apr 10 '10 at 3:01

This question came from our site for computer enthusiasts and power users.

closed as exact duplicate by Sam Nov 22 '11 at 20:22

This question covers exactly the same ground as earlier questions on this topic; its answers may be merged with another identical question. See the FAQ.

1 Answer

up vote 1 down vote accepted

Send flush() from time to time or after your blocks and unless you use obstart(), apache will send chunked responses.

link|improve this answer
feedback

Not the answer you're looking for? Browse other questions tagged or ask your own question.