rss和原子内容类型

jav*_*iry 7 rss firefox content-type google-chrome atom-feed

我的Feed的内容类型有问题:

当我设置content-type"application/rss+xml""application/atom+xml"火狐将使其电流(并显示默认订阅页),但Chrome的渲染它"text/plain".当我更改content-type"text/xml""application/xml"同时FirefoxChrome将其呈现为xml文档时(Firefox将不会显示"订阅"页面).

你有什么想法或建议吗?我应该为rss.xmlatom.xml使用哪种内容类型?

小智 2

MIME 类型 application/rss+xml不被 IANA识别,尽管一些使用 RSS 的应用程序仍然支持它。

因为无法识别,所以唯一使用的官方 MIME 类型是 text/xml。

Atom 提要确实具有 application/atom+xml 的官方 MIME 类型。