Created
June 30, 2009 12:04
-
-
Save superfeedr/138121 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="utf-8"?> | |
<feed xmlns="http://www.w3.org/2005/Atom"> | |
<title>Superfeedr Blog</title> | |
<link href="http://blog.superfeedr.com/atom.xml" rel="self"/> | |
<link href="http://blog.superfeedr.com/"/> | |
<updated>2009-06-23T10:05:53-07:00</updated> | |
<id>http://blog.superfeedr.com/</id> | |
<author> | |
<name>Julien Genestoux</name> | |
<uri>http://twitter.com/julien51</uri> | |
<email>[email protected]</email> | |
</author> | |
<category term="Superfeedr" scheme="http://www.sixapart.com/ns/types#tag" /> | |
<category term="Feed Parsing" scheme="http://www.sixapart.com/ns/types#tag" /> | |
<category term="Songs from Finland" scheme="http://www.sixapart.com/ns/types#tag" /> | |
<entry> | |
<title>RSS or Atom, not both!</title> | |
<category term="Gospel" scheme="http://www.sixapart.com/ns/types#tag" /> | |
<link href="http://blog.superfeedr.com/feeeds/gospel/atom-or-rss-not-both"/> | |
<updated>2009-06-23T00:00:00-07:00</updated> | |
<id>blog.superfeedr.com:/feeeds/gospel/atom-or-rss-not-both</id> | |
<content type="html"><p><a href="http://en.wikipedia.org/wiki/RSS_(file_format"><span class="caps">RSS</span></a>) and <a href="http://www.atomenabled.org/developers/syndication/atom-format-spec.php"><span class="caps">ATOM</span></a> have very similar (if not identical) purposes. I don&#8217;t know any feed consumer that consumes only one type, yet, a lot of services are still providing both.</p> | |
<p>Publishing both is useless, because it&#8217;s likely that services will end up polling both of them, to identify new content. It is very hard for them to be 100% sure that they actually contain (and will always contain) the same information. You know that <a href="http://blog.superfeedr.com/gospel/something-stupid/">polling your blog or service is stupid</a>... don&#8217;t make twice as stupid.</p> | |
<p>Yet, if you publish both <span class="caps">ATOM</span> and <span class="caps">RSS</span>, make our lives easier in two steps :</p> | |
<ul> | |
<li>Remove the extra <code>&lt;link href="..."&gt;</code>, by keeping just Atom or <span class="caps">RSS</span></li> | |
</ul> | |
<ul> | |
<li>Add a 301 redirection from one to another, so that you&#8217;re not messing with your existing pollers (as they should probably follow redirections and be able to parse either format) : with Apache it&#8217;s as easy as: <code>RedirectMatch 301 /statuses/user_timeline/(.*)\.rss http://twitter.com/statuses/user_timeline/$1.atom</code></li> | |
</ul> | |
<p>No more excuse for not doing it! Please note that I am not discussing whether you should keep <span class="caps">ATOM</span> or <span class="caps">RSS</span>. I&#8217;d go for Atom, but that&#8217;s a not the case for everybody.</p></content> | |
</entry> | |
</feed> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment