diff --git a/api/src/Etemplate.php b/api/src/Etemplate.php index 62790b2068..4eb63207b5 100644 --- a/api/src/Etemplate.php +++ b/api/src/Etemplate.php @@ -276,6 +276,10 @@ class Etemplate extends Etemplate\Widget\Template } if ($output_mode != 1) { + // Turn compression off so Ajax::headers() does not send a compression header + // echo (used below) is not compatible with browser expecting compressed content + ini_set('zlib.output_compression', 0); + echo $GLOBALS['egw']->framework->header(); if ($output_mode != 2 && !$GLOBALS['egw_info']['flags']['nonavbar']) {