What is the correct MIME type to use for an RSS feed?

Viewed 61295

Is one MIME type preferable to ensure compatibility with RSS readers and other scrapers?

The options seem to be:

  • text/xml
  • text/rss+xml

Interestingly Stackoverflow is using text/html.

7 Answers

Go for MIME application/rss+xml to be safe if you want to make sure your feed is compatible with RSS readers and other scrapers. That's what I use.

You could use text/xml, but the correct MIME type would be application/rss+xml.

Related