资源已解释为文档,但使用 MIME 类型 text/css 进行传输
这是在 Google Chrome Inspector 中显示的错误。
该文件是:http://www.doanddare.org/css/style.css
它正在由 PHP 处理器渲染。
我该如何修复此错误?
返回的标题如下:
请求标题
Accept:application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
Cache-Control:max-age=0
User-Agent:Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/534.3 (KHTML, like Gecko) Chrome/6.0.472.63 Safari/534.3
响应头
HTTP/1.1 200 OK
Date: Sun, 10 Oct 2010 07:35:04 GMT
Server: Apache
content-style-type: text/css
Expires: Thu, 10 Oct 2030 03:50:23 GMT
Cache-Control: max-age=631138519, public
Content-Encoding: gzip
Vary: Accept-Encoding
Transfer-Encoding: chunked
Content-Type: text/css
Connection: Keep-Alive
这可能与请求头作为文档发送以及响应头返回为CSS文件有关吗?
如果是这样,我该如何控制请求头呢?
感谢任何帮助。