This is a discussion on mod_gzip question within the Apache Web Server forums, part of the Web Server and Related Forums category; I have Apache compiled with mod_gzip, but when I open my web site (text only, no image), the text shows ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
I have Apache compiled with mod_gzip, but when I open my web site
(text only, no image), the text shows up by chunks... Shouldn't it wait to download the whole compressed index.html file, extract it and render it fully? Wouldn't it make more sense? Then I wonder is mod_gzip is really working as expected. Is it supposed to render the text page by chunks? |
|
|||
|
On Apr 17, 4:28 pm, Charles <landema...@gmail.com> wrote:
> I have Apache compiled with mod_gzip, but when I open my web site > (text only, no image), the text shows up by chunks... Shouldn't it > wait to download the whole compressed index.html file, extract it and > render it fully? Wouldn't it make more sense? Then I wonder is > mod_gzip is really working as expected. Is it supposed to render the > text page by chunks? is there a reason why you are not using mod deflate? stuck with apache 1.x? are you serving php generated text? php chunks the output of the script if it doesnt know the content length, dont bother with mod_gzip dechunking though, so send content length header |
|
|||
|
On Apr 17, 5:56 pm, Charles <landema...@gmail.com> wrote:
> > is there a reason why you are not using mod deflate? stuck with apache > > 1.x? > > Yes, because I use cPanel :( > > > so send content length header > > How could I achieve that? Using PHP? > TIA. using php, (assuming its not being sent which you can check using firebug or liveheaders addon in firefox, or a proxy like fidlertool or paros on win or win/lin respectively) in the case where you /are/ using dynamically generated text. header( 'Content-Length: ' . strlen($strHtml) ); wgere $strHtml is the dyn string length after compression. if you are not using dyn gen string then the content length header i probably being sent, and i'm too dull to see where you problem lies, soz. |
|
|||
|
On Apr 17, 8:08 pm, Charles <landema...@gmail.com> wrote:
> Thanks, I see... But how do I find out the dyn string length after > compression? well it all depends how you are compressing it, if you are leaving it to apache then thats hard, if your php script does it, then I would turn off gzipping and use output buffering, but I cant see your script. There are many examples of headers in conjuction with zlib on the php site. |