Link to home
Start Free TrialLog in
Avatar of Software Squirrel
Software SquirrelFlag for United States of America

asked on

AWS S3 Content-Type

I am sure many of you have seen this.  I am having an issue with my .css files and .js files as they are not getting assigned a value of css in the mime.  It is showing octet-stream.  I have tried to add it when uploading the files 1. Change Metadata Field (text/css) does not show up as an option.  Used S3 Browser and changed the Content-Type to text/css.  I guess it saved?, but then I go back in and view my site from Developer view in browser, it still says octet-stream.  I do have 1 css file that has the full url as the link (google fonts url). It shows up right in the Dev browser as CSS for the type.  FYI - When I inspect, all css files do not have a content type except the one for google fonts.  You can see my site here.  http://inquireacademy.com Thoughts?
Avatar of Software Squirrel
Software Squirrel
Flag of United States of America image

ASKER

Answered my own question.  Remove the folders with your files that have the wrong Values in S3.  Use S3 Browser and reupload those folders or files. S3 Browser will add the right Content-Types automatically.  Amazon knows it's an issue.  Hopefully they will fix it soon.
ASKER CERTIFIED SOLUTION
Avatar of Shalom Carmel
Shalom Carmel
Flag of Israel image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Good idea.  Thanks.