mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-07-13 03:27:39 +03:00
gzip compress all responses to reduce mobile transfer limits
This commit is contained in:
parent
55f74c5d10
commit
643c02c40b
1 changed files with 5 additions and 0 deletions
|
|
@ -221,6 +221,11 @@
|
||||||
unset($sSalt, $sData, $sInstalled, $sPrivateDataFolderInternalName);
|
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';
|
include APP_VERSION_ROOT_PATH.'app/handle.php';
|
||||||
|
|
||||||
if (defined('RAINLOOP_EXIT_ON_END') && RAINLOOP_EXIT_ON_END)
|
if (defined('RAINLOOP_EXIT_ON_END') && RAINLOOP_EXIT_ON_END)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue