mime 类型 "application/css" 和 "text/css" 有什么区别?

What is the difference between mime type "application/css" and "text/css"?

提供文件时,当我发送 mime 类型时浏览器无法正确加载 作为 "application/css" 但当我发送 "text/css" 时工作正常。我不明白这是为什么?

'application/css' 不是官方指定的 MIME 类型,而 'text/css' 是(参见 IANA list of assigned media types)。不要指望用户代理处理非官方的 MIME 类型只是因为它们 'look like' 与官方的相同并且人类会推断出其意图。

(主要)xml mime 类型存在类似的二分法。根据 this (admittedly ancient) SO answer which in turn cites RFC 3023 (now obsoleted by RFC 7303,差异集中在 'readable/unreadable by a casual user'。这个原因可能不适用于“*/css”,但可以说明为什么浏览器在这方面表现得很挑剔。