简体   繁体   English

突然我的Parse应用停止读取一些CSS文件

[英]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. 突然,我的解析网站停止读取特定的CSS文件,而无需进行任何更改或部署。

and when i navigate to the browsers (firefox v 43.0.2) console i get the error: 当我导航到浏览器(firefox v 43.0.2)控制台时,出现错误:

The stylesheet http://......regstyles.css was not loaded because its MIME type, "application/x-css", is not "text/css" . 未加载样式表http://......regstyles.css ,因为其MIME类型“ application / x-css”不是“ 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. 我也尝试了chrome(版本47.0.2526.106 m)和资源管理器(版本:9.0.9),但仍然没有读取我的CSS文件。

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" 未加载样式表http://......regstyles.css ,因为其MIME类型“ application / x-css”不是“ text / css”

the problem is that browser expect CSS file to have MIME type "text/css". 问题是浏览器期望CSS文件的MIME类型为“ text / css”。

More over, in this article on MDN you can find that: 此外,在有关MDN的本文中,您可以找到:

The W3C specification mentions that CSS files should be served with a "text/css" MIME type. W3C规范提到CSS文件应以“ text / css” MIME类型提供。

So, it seems like setting correct MIME type for CSS you try to link will solve your problem. 因此,似乎为您尝试链接的CSS设置了正确的MIME类型将解决您的问题。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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