Conditionally gzip output, excluding streaming endpoints