Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

rss and atom content type

I have a problem with my feed's content-type:

When I set the content-type to "application/rss+xml" or "application/atom+xml" the Firefox will render it current (and displays the default subscribe page), but the Chrome renders it as "text/plain". When I change the content-type to "text/xml" or "application/xml" both Firefox and Chrome render it as a xml document (and Firefox will not show the Subscribe page).

Have you any idea or suggestion? Which content-type should I use for rss.xml and atom.xml?

like image 877
amiry jd Avatar asked Nov 19 '11 23:11

amiry jd


1 Answers

The MIME type application/rss+xml is not recognized by the IANA, though some RSS-consuming applications support it anyway.

Because it's not recognized, the only official MIME type to use is text/xml.

Atom feeds do have the official MIME type of application/atom+xml.

like image 176
rcade Avatar answered Sep 30 '22 07:09

rcade