Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
- Leif Wessman
February 6, 2006, 4:04 pm
rate this thread
php_value zlib.output_compression On
php_value zlib.output_compression_level 5
The problem is that the Content-Encoding header does not get set at all
in the response. Therefore, a browser that advertises itself as
supporting gzip compression (Accept-Encoding: gzip,deflate) receives
compressed content but does not know it is compressed.
If I manually add the following to my script:
... it then works.
I'm using PHP Version 4.4.2 with the following Configure Command
'./configure' '--with-apache=../apache_1.3.34' '--with-openssl'
'--with-gd' '--with-mysql' '--enable-trans-sid' '--enable-track-vars'
'--with-jpeg-dir=/usr' '--with-png-dir=/usr' '--with-zlib=/usr'
'--enable-mbstring' '--enable-ftp' '--enable-exif'
ZLib Support enabled
Compiled Version 1.2.2
Linked Version 1.2.2
Any ideas of what might be causing this?
Re: Content-Encoding is not set in response when using zlib.output_compression
compress pages. If this option is set to "On" in php.ini or the Apache
configuration, pages are compressed if the browser sends an
"Accept-Encoding: gzip" or "deflate" header."
So if your client doesnt send accept-encoding:gzip, you won't get that!
Also you could look at the notes.
You could try a different browser, or configuring it.