diff options
| author | 2014-03-24 19:16:09 +0100 | |
|---|---|---|
| committer | 2014-03-24 19:16:09 +0100 | |
| commit | fd829d75676a07a13a635db037efa92e364026a7 (patch) | |
| tree | c34cba1f3d738ed3eeef87221c46f35892f9eb30 | |
| parent | 5081ffaf39699398f83be97e47b72444e5bcd5d1 (diff) | |
Constant to enable PHP compression
https://github.com/marienfressinaud/FreshRSS/issues/303#issuecomment-38477994
| -rw-r--r-- | constants.php | 3 | ||||
| -rwxr-xr-x | p/i/index.php | 2 |
2 files changed, 4 insertions, 1 deletions
diff --git a/constants.php b/constants.php index 4818f1565..e32b8cbc3 100644 --- a/constants.php +++ b/constants.php @@ -2,6 +2,9 @@ define('FRESHRSS_VERSION', '0.8-dev'); define('FRESHRSS_WEBSITE', 'http://freshrss.org'); +// PHP text output compression http://php.net/ob_gzhandler (better to do it at Web server level) +define('PHP_COMPRESSION', false); + // Constantes de chemins define('FRESHRSS_PATH', dirname(__FILE__)); diff --git a/p/i/index.php b/p/i/index.php index 187bbabe8..4afffb3dd 100755 --- a/p/i/index.php +++ b/p/i/index.php @@ -35,7 +35,7 @@ if (file_exists ('install.php')) { @filemtime(LOG_PATH . '/' . $currentUser . '.log'), @filemtime(DATA_PATH . '/config.php') ); - if (httpConditional($dateLastModification, 0, 0, false, false, true)) { + if (httpConditional($dateLastModification, 0, 0, false, PHP_COMPRESSION, true)) { exit(); //No need to send anything } } |
