[eluser]Crazy LionHeart[/eluser]
[quote author="gtech" date="1209960672"][url="http://ellislab.com/forums/viewthread/78589/"]duplicate problem discussed[/url][/quote]
It's not my case. i made this: replace in Output library code:
Code:
if (isset($_SERVER['HTTP_ACCEPT_ENCODING']) AND strpos($_SERVER['HTTP_ACCEPT_ENCODING'], 'gzip') !== FALSE)
{
ob_start('ob_gzhandler');
}
to this:
Code:
//check do client request 'gzip'
if (isset($_SERVER['HTTP_ACCEPT_ENCODING']) AND substr_count($_SERVER['HTTP_ACCEPT_ENCODING'], 'gzip'))
{
// my server doesn't work property without chunksize. May be you don't need set.
ob_start("ob_gzhandler", 2048);
} else
//check do client request 'deflate'
if (isset($_SERVER['HTTP_ACCEPT_ENCODING']) AND substr_count($_SERVER['HTTP_ACCEPT_ENCODING'], 'deflate'))
{
ob_start();
}
// if client doesn't support gzip or deflate we dont sent header.
... and set compression in your config file:
Code:
/*
|--------------------------------------------------------------------------
| Output Compression
|--------------------------------------------------------------------------
|
| Enables Gzip output compression for faster page loads. When enabled,
| the output class will test whether your server supports Gzip.
| Even if it does, however, not all browsers support compression
| so enable only if you are reasonably sure your visitors can handle it.
|
| VERY IMPORTANT: If you are getting a blank page when compression is enabled it
| means you are prematurely outputting something to your browser. It could
| even be a line of whitespace at the end of one of your scripts. For
| compression to work, nothing can be sent before the output buffer is called
| by the output class. Do not "echo" any values with compression enabled.
|
*/
$config['compress_output'] = TRUE;