If the encode method is '' (none) or compression level is 0, or the 'zlib'
extension isn't loaded, we return false.
Then the appropriate gz_* function is called to compress the content. If
this fails, false is returned.
The header "Vary: Accept-Encoding" is added. If encoding is successful,
the Content-Length header is updated, and Content-Encoding is also added.