Friday, May 18, 2012

Amazon S3 and 'Resource interpreted as Stylesheet but transferred with MIME type binary/octet-stream'

If you use Amazon S3 to serve your static CSS you may end up with this error message 'Resource interpreted as Stylesheet but transferred with MIME type binary/octet-stream'
  1. You have to log in into Amazon S3 console
  2. Navigate to the file in question
  3. Open Properties and click to the Metadata
  4. You can see a Content-Type field with the value binary/octet-stream, change it to text/css
Something like this

1 comment:

  1. Thanks for this! Had no idea why my stylesheets had stopped being read!

    ReplyDelete