zlib html compression
| From: | David Hamilton | Date: | Fri, 15 Oct 2004 21:22:45 +0000 |
| Subject: | zlib html compression | ||
| Groups: | php.windows | ||
| Request: | Send a blank email to php-windows+get-24771@lists.php.net to get a copy of this message | ||
Hello all,
I'm currently re-designing my company's website. One of our major
concerns is load time. I happened to stumble across some information on
using zlib to compress pages using PHP.
The advice seemed "to good to be true" the recommendation was setup an
.htaccess file with the following:
php_flag zlib.output_compression on
php_value zlib.output_compression_level 6
It was my understanding this turns on output compression meaning that
any page parsed any ".php" (or any other extension associated with php)
will have its contents compressed if the requesting browser supports
HTTP 1.1
Is this correct? If not can anyone point in the proper direction of
doing this? I'm mainly interested in compressing a few key pages and a
somewhat bloated .js file (which I realize the method above wouldn't do
unless I ask to the server to parse .js as PHP...probably not a good
idea...)
Any help/comments/suggestions would be greatly appreciated.
Thanks,
David Hamilton