Home
Support Forums

Refused to apply style from ... because its MIME type not supported

Hello everyone,

I’m not sure if this is because of Gatsby or Netlify but I am having this problem whenever I update my css and re-deploy. The website works on incognito or after deleting cache.

The error in console:
Refused to apply style from 'https://mydomain.com/styles.7f2aca1e8301206420f5.css' because its MIME type ('text/html') is not a supported stylesheet MIME type, and strict MIME checking is enabled.

I am using gatsby-plugin-remove-fingerprints because I read it is better to if you’re deploying to Netlify. IDK if that’s causing the issue.

Netlify related plugins:

"gatsby-plugin-netlify": "^2.6.0",
"gatsby-plugin-netlify-cms": "^4.5.0",

Any help is appreciated. Thank you.

Update: Removing gatsby-plugin-remove-fingerprints fixed the issue for me. I didn’t see a negative impact on build times.