Click to See Complete Forum and Search --> : [Resolved] mod_gzip not adding Content-Encoding header


jayant
07-07-2005, 11:02 AM
I compiled and added the mod_gzip module for apache using the instructions at http://www.i4net.tv/marticle/get.php?action=getarticle&articleid=12 .

The compression is happening fine but the problem is that the headers don't include the header 'Content-Encoding: gzip'. You can see the headers of http://www.eusenet.com/ if you want.
How do I ensure that 'Content-Encoding: gzip' is passed whenever the content is gzipped and not included otherwise.

thanks,
jayant

goldbug
07-07-2005, 11:40 AM
First off, are you sure it's actually compressing the content (size differences)--if not, apache just might not be configured quite right, or the module not truly loading (check apache error logs)

Second, if you can't get mod_gzip working, mod_deflate works out-of-the-box with Apache2

Personally, I've been wondering if mod_gzip is even alive anymore--there doesn't seem to have been any update or changes for maybe two years :/

jayant
07-07-2005, 01:22 PM
the module is loading properly and working. the page that was 10kb earlier, now is 2kb when transfering. just that the header seems to be missing.

drew010
07-07-2005, 02:00 PM
its showing for me,,,
Content-Encoding: gzip

www.neoprogrammers.com/images/eusenet.jpg

The request I issued from telnet was

GET / HTTP/1.0
Host: www.eusenet.com
Accept-Encoding: gzip, deflate

jayant
07-07-2005, 02:59 PM
Yeah, its sending.
The reason was that I was caching data for 15 minutes, so at that time it was sending data from the cache :)

Cheers,
Jayant