Add Content-Encoding and Content-Type headers