I have added the header “Content-Encoding: gzip” to my S3 files, and now when I try to access them, it returns me “Error 330 (net :: ERR_CONTENT_DECODING_FAILED)”.
Please note that my files are just images, js and css.
How to solve this problem?
You will have to manually gzip them and then upload them to S3. S3 does not have gzip capability on the fly, as your web server does.
EDIT: Images are already compressed, so do not use them.
I don't know if you use Grunt as a deployment tool, but use this to compress your files:
https://github.com/gruntjs/grunt-contrib-compress
Then:
https://github.com/MathieuLoutre/grunt-aws-s3
To upload compressed files to Amazon S3. Et voila!
Source: https://habr.com/ru/post/1401440/More articles:Errors not detected by Global.asax? - c #better understanding of racing design conditions - javaMonitoring race condition at startup - javacombine merge subtree with sparse validation in git - gitReplace a single node with multiple nodes using HTML Agility Pack - c #How to reset aggregated output of a makefile? - makefileWhat happened to my CASE? - sqlis there a better way to convert to uppercase in the spirit of forcing? - boostFind specific columns and replace the next column with a specific value using gawk - replaceConstant sampling frequency Acclerometer android? - androidAll Articles