Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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?

like image 282
Jonathan Roy Avatar asked Dec 27 '22 04:12

Jonathan Roy


1 Answers

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.

like image 77
Jeff Avatar answered Feb 24 '23 13:02

Jeff