Media type / application
application/rss+xml
RSS feeds. Universally used and never formally registered with IANA, which is why validators complain.
Served inline: Browsers display this in the tab without granting it script access to the page. Safe to serve inline, provided the bytes really are what the header claims.
Browser behaviour
Renders inertly
Charset
charset required
Compression
Compress in transit
Send it like this
Content-Type: application/rss+xml; charset=utf-8Send `; charset=utf-8`. Without it the receiver falls back to its own default — for some text types that default is us-ascii, and any non-ASCII character then renders wrong.
Handling verdict
Browsers display this in the tab without granting it script access to the page. Safe to serve inline, provided the bytes really are what the header claims.
Send `; charset=utf-8`. Without it the receiver falls back to its own default — for some text types that default is us-ascii, and any non-ASCII character then renders wrong.
The payload is text-like or otherwise repetitive, so gzip or Brotli removes real bytes. Enable it at the server or CDN.
Registered with IANA through a public review process, so the name is stable and every implementation can rely on it meaning the same thing.
Anatomy of the name
RFC 6838Top-level type
application
Application
Subtype
rss+xml
Registered in the standards tree.
Structured syntax
+xml
The payload is well-formed XML, so generic XML tooling — parsers, XPath, schema validators — applies.
Parameters
charset
Beyond the charset rule above, this type defines no parameters of its own.
What trips people up
1 note- Some readers also accept text/xml or application/xml for feeds, but this is what autodiscovery links look for.
Response headers
Content-Type: application/rss+xml; charset=utf-8
X-Content-Type-Options: nosniff
Content-Disposition: inline
Vary: Accept-Encodingnosniff stops the browser second-guessing the type you declared, which is what makes the rest of this reliable. Serving it inline is safe here because the browser renders it without granting it script access.
Server configuration
extension mappingnginx
types {
application/rss+xml rss;
}Apache
AddType application/rss+xml .rss
AddCharset UTF-8 .rssCaddy
@type path *.rss
header @type Content-Type "application/rss+xml; charset=utf-8"Extensions and other spellings
declaredFile extensions
File signature
No fixed signature — this format has no reliable magic number, so identify it by parsing rather than by the first few bytes.