diff options
Diffstat (limited to 'includes/bootstrap.inc')
-rw-r--r-- | includes/bootstrap.inc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/includes/bootstrap.inc b/includes/bootstrap.inc index 746e99947..7ab4f2b65 100644 --- a/includes/bootstrap.inc +++ b/includes/bootstrap.inc @@ -1104,6 +1104,9 @@ function drupal_serve_page_from_cache(stdClass $cache) { header('Vary: Accept-Encoding', FALSE); // If page_compression is enabled, the cache contains gzipped data. if ($return_compressed) { + // $cache->data is already gzip'ed, so make sure zlib.output_compression + // does not compress it once more. + ini_set('zlib.output_compression', '0'); header('Content-Encoding: gzip'); } else { |