gzip compress all responses to reduce mobile transfer limits

This commit is contained in:
djmaze 2020-08-10 12:00:37 +02:00
parent 55f74c5d10
commit 643c02c40b

View file

@ -221,6 +221,11 @@
unset($sSalt, $sData, $sInstalled, $sPrivateDataFolderInternalName);
}
// See https://github.com/kjdev/php-ext-brotli
if (!ini_get('zlib.output_compression', 0) && !ini_get('brotli.output_compression', 0)) {
ob_start('ob_gzhandler');
}
include APP_VERSION_ROOT_PATH.'app/handle.php';
if (defined('RAINLOOP_EXIT_ON_END') && RAINLOOP_EXIT_ON_END)