zlib html compression

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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
 

-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [PHP Users]     [PHP Database Programming]     [PHP Install]     [Kernel Newbies]     [Yosemite Forum]     [PHP Books]

  Powered by Linux