Make WordPress Core

Opened 17 years ago

Closed 15 years ago

Last modified 15 years ago

#4697 closed defect (bug) (fixed)

RSS feeds give incorrect content types

Reported by: otto42's profile Otto42 Owned by:
Milestone: 2.8 Priority: normal
Severity: normal Version: 2.3
Component: General Keywords:
Focuses: Cc:

Description

The RSS feeds are using a content type of "text/xml" which is not the standard. They should be using "application/rss+xml" instead.

Patch for trunk attached.

Attachments (1)

rss-content-types.diff (1.9 KB) - added by Otto42 17 years ago.
Change text/xml to application/rss+xml in the various rss feeds

Download all attachments as: .zip

Change History (7)

@Otto42
17 years ago

Change text/xml to application/rss+xml in the various rss feeds

#1 @ryan
17 years ago

I think Firefox and IE fixed the problems where changing to application/* would cause a download. This is probably safe to do now.

#2 @ryan
17 years ago

IE6 still downloads.

#3 @foolswisdom
17 years ago

  • Component changed from Optimization to General
  • Keywords has-patch removed
  • Milestone changed from 2.3 to 2.4 (next)

I think this topic regularly comes up, and I don't recall real benefit being demonstrated.

I recall that "application/xml" works on IE6, IE7 and Firefox.

Otto42 is there now a "standard"? MarkJ commented on a wp-testers thread in January, "Nah, text/xml is fine for RSS 2.0 AFAIK application/rss+xml has been
proposed but not standardized. http://www.rssboard.org/rss-mime-type-application.txt "

#4 @Otto42
17 years ago

Depends on how you define "standard". It has yet to be registered with IANA and such, but the feed validator wants application/rss+xml:
http://feedvalidator.org/docs/warning/UnexpectedContentType.html

The use of application/xml and/or text/xml, while technically correct, was only to be compatible with IE6 and to allow the feed to display instead of to download. All major feed readers work with, and prefer, the more specific MIME types of rdf+xml, rss+xml, atom+xml, and so on.

#5 @Denis-de-Bernardy
15 years ago

  • Milestone 2.9 deleted
  • Resolution set to fixed
  • Status changed from new to closed

I'm getting:

Content-Type: application/rss+xml; charset=UTF-8

and:

Content-Type: application/atom+xml; charset=UTF-8

#6 @Denis-de-Bernardy
15 years ago

  • Milestone set to 2.8
Note: See TracTickets for help on using tickets.