Bluehost.com Web Hosting $6.95

mod_gzip question

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 ...


Go Back   Usenet Forums > Web Server and Related Forums > Apache Web Server

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-17-2007
Charles
 
Posts: n/a
Default mod_gzip question

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?

  #2 (permalink)  
Old 04-17-2007
shimmyshack
 
Posts: n/a
Default Re: mod_gzip question

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

  #3 (permalink)  
Old 04-17-2007
Charles
 
Posts: n/a
Default Re: mod_gzip question

> 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.

  #4 (permalink)  
Old 04-17-2007
shimmyshack
 
Posts: n/a
Default Re: mod_gzip question

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.

  #5 (permalink)  
Old 04-17-2007
Charles
 
Posts: n/a
Default Re: mod_gzip question

Thanks, I see... But how do I find out the dyn string length after
compression?

  #6 (permalink)  
Old 04-17-2007
shimmyshack
 
Posts: n/a
Default Re: mod_gzip question

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.

 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT +1. The time now is 05:47 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0