简体   繁体   中英

Suddenly my Parse app stopped reading some Css file

Suddenly my parse website stopped reading specific css files , without me doing any changes or deployments.

and when i navigate to the browsers (firefox v 43.0.2) console i get the error:

The stylesheet http://......regstyles.css was not loaded because its MIME type, "application/x-css", is not "text/css" .

I have tried also chrome (Version 47.0.2526.106 m) and explorer (Version : 9.0.9) and still my css files are not read.

Can some one guide where exactly is the problem.

According to this message:

The stylesheet http://......regstyles.css was not loaded because its MIME type, "application/x-css", is not "text/css"

the problem is that browser expect CSS file to have MIME type "text/css".

More over, in this article on MDN you can find that:

The W3C specification mentions that CSS files should be served with a "text/css" MIME type.

So, it seems like setting correct MIME type for CSS you try to link will solve your problem.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM