title: What 'Content-Type' header to use when serving gzipped files?
body: <p>I'm serving gzipped copies of my css / javascript files. As per a tutorial, I set the content-type as <code>application/gzip</code> when serving these files. However, chrome doesn't seem to un-gzip these files, and for the javascript files I get a lot of 'illegal character' errors. If I view source, I still see the files as compressed, rather than uncompressed.</p>
  
  <p>My question is, what should I set as the content type for these files, in order for the browser to interpret them correctly as gzipped css / js files, and un-gzip them? If I just set <code>text/javascript</code> or <code>text/css</code>, will the browser still interpret them correctly?</p>
  
  <p>Edit: Full response headers:</p>
  
  <pre><code>HTTP/1.1 200 OK
  x-amz-id-2: UIBkZT/MuFxsmn+3nVOzEO63rRY99l3traCbMExUgSdGHUrOIPtNp34h1+ujYKmt
  x-amz-request-id: 19346C9B01D8FC62
  Date: Mon, 12 May 2014 03:59:51 GMT
  Content-Encoding: gzip
  Last-Modified: Mon, 12 May 2014 02:24:54 GMT
  ETag: "561080b5e19f6daea2e74fd5a0623c79"
  Accept-Ranges: bytes
  Content-Type: application/x-gzip
  Content-Length: 5153
  Server: AmazonS3
  </code></pre>