aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--constants.php3
-rwxr-xr-xp/i/index.php2
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
}
}