[website] Turn on gzip compression

Jeremy Newman jnewman at codeweavers.com
Tue Feb 15 14:04:44 CST 2011


Actually, a better way to accomplish this is to add:

php_flag zlib.output_compression On

to the .htaccess file. I'm a little surprised it was not there already.

-N

On 02/15/2011 01:02 PM, André Hentschel wrote:
> First make sure that works with your server...
> ---
>   site |    3 +++
>   1 files changed, 3 insertions(+), 0 deletions(-)
>
> diff --git a/site b/site
> index 5a7bd46..a776199 100644
> --- a/site
> +++ b/site
> @@ -5,6 +5,8 @@
>     by Jeremy Newman<jnewman at codeweavers.com>
>   */
>
> +ob_start("ob_gzhandler");
> +
>   // load modules and defines
>   $file_root = realpath(dirname(__FILE__));
>   require("{$file_root}/include/incl.php");
> @@ -114,4 +116,5 @@ $html->page = $html->template("local", PAGE);
>   $html->showpage();
>
>   // done
> +ob_end_flush();
>   ?>



More information about the wine-devel mailing list