s3cmd - MIME Type
Sep 14, 2017
Since I’m utilizing a static content blog called Hexo, I use a tool called s3cmd
to sync the content to AWS S3. I decided to try and get everything running under the Linux Subsystem for Windows since lately I’ve been under Windows more often than not. I believe there is a MIME type bug in s3cmd
or in the python-magic
package. This causes CSS and JS files to not be rendered by the browser due to “strict MIME type rules”.
My solution was to just switch over to awscli
. It’s actually faster anyway so that’s a plus.
sudo apt-get install awscli -y
aws s3 sync public/ s3://YOUR_BUCKET_NAME/ --acl public-read