added header check for Content-Encoding to enable gzip compression