Resource interpreted as Stylesheet but transferred with MIME type text/plain
2017-08-10 01:38
381 查看
原本静态资源一直能正常访问,然后写着写着突然就冒出这么个错误,而且所有的静态文件都变成了html文件,无法访问。页面中有多少个静态文件的引用就转变成为对当前页面的多少次访问。。
查了好久大都是各种扯。。
最后总算还是找到原因,与下面参考的文章里的作者遇到的情况不同,他的是添加了过滤器,但我只是给servlet添加了一个 “/” 的url,没想到这也会屏蔽了所有的静态文件。而且至于为什么会转变为当前页面暂时还不清楚。有知道的朋友麻烦告知一下。
参考:
http://www.cnblogs.com/zhenmingliu/p/3522731.html
查了好久大都是各种扯。。
最后总算还是找到原因,与下面参考的文章里的作者遇到的情况不同,他的是添加了过滤器,但我只是给servlet添加了一个 “/” 的url,没想到这也会屏蔽了所有的静态文件。而且至于为什么会转变为当前页面暂时还不清楚。有知道的朋友麻烦告知一下。
参考:
http://www.cnblogs.com/zhenmingliu/p/3522731.html
相关文章推荐
- web页面 显示 Resource interpreted as Stylesheet but transferred with MIME type text/plain的错误警告
- 建站记录2-CSS文件未加载-已解决-Resource interpreted as Stylesheet but transferred with MIME type text/plain
- Resource interpreted as Stylesheet but transferred with MIME type text/plain
- Resource interpreted as Stylesheet but transferred with MIME type text/html:以及Uncaught SyntaxError:
- Java过滤器引发的异常:Resource interpreted as Stylesheet but transferred with MIME type text/html
- Resource interpreted as Image but transferred with MIME type text/plain 警告解决方案
- Resource interpreted as Script but transferred with MIME type text/plain
- 警告:Resource interpreted as Stylesheet but transferred with MIME type application/x-css
- Chrome 报 Resource interpreted as Script but transferred with MIME type text/plain 警告的解决办法
- Resource interpreted as Stylesheet but transferred with MIME type application/x-css
- 关于 Resource interpreted as Script but transferred with MIME type text/plain问题的处理
- odoo 错误 Resource interpreted as Stylesheet but transferred with MIME type application/x-css:
- Resource interpreted as Script but transferred with MIME type text/plain:
- Chrome 报 Resource interpreted as Script but transferred with MIME type text/plain 警告的解决办法
- Resource interpreted as Stylesheet but transferred with MIME type application/x-css
- Chrome 报 Resource interpreted as Script but transferred with MIME type text/plain 警告的解决办法
- Resource interpreted as Stylesheet but transferred with MIME type application/octet-stream
- golange 错误如下 Resource interpreted as Script but transferred with MIME type text
- 关于chrome Resource interpreted as Script but transferred with MIME type text/html的问题
- 关于chrome Resource interpreted as Script but transferred with MIME type text/html的问题