Search code examples
amazon-s3gzipamazon-cloudfront

Why do Amazon S3 returns me an Error 330 about simple files?


I have added the "Content-Encoding: gzip" header to my S3 files and now when I try to access them, it returns me a "Error 330 (net::ERR_CONTENT_DECODING_FAILED)".

Note that my files are simply images, js and css.

How do I solve that issue?


Solution

  • You're going to have to manually gzip them and then upload them to S3. S3 doesn't have the ability to gzip on the fly like your web server does.

    EDIT: Images are already compressed so don't gzip them.