带有css,js和图像的MIME类型问题

时间:2015-02-06 21:42:00

标签: javascript css server mime

我刚刚在alwaysdata上部署了我的Django网站。但我确实有一个问题:当我要求页面时,会发送和显示html文件,但不会显示css,javascript和图像文件。我在控制台中有以下消息:

Resource interpreted as Stylesheet but transferred with MIME type text/html:
Resource interpreted as Image but transferred with MIME type text/html:
Resource interpreted as Script but transferred with MIME type text/html:

你知道问题出在哪里吗?

(顺便说一句,我已经在我的.htaccess中添加了这个:

AddType text/css .css
AddType application/javascript .js
etc

0 个答案:

没有答案