FreeCodeCamp RSS Feed has non unique GUID for RSS items

They should be unique… for:
https://www.freecodecamp.org/news/rss/
Regards.

Are you talking about the <guid> element?

I don’t think it is a requirement. The feed validates and the guid is only a recommendation.

I remembered this one thread we had. If your reader is the issue you may have to try another one.

I can’t find the specs for it but…

There are no rules for the syntax.


https://www.xml.com/pub/a/2004/08/18/pilgrim.html

The most recent version of RSS has an element called <guid> that attempts to solve this problem. However, there are several problems with it:

  1. Older RSS versions don’t have it, and even in the latest version, it’s still optional. So very few feeds actually have it.
  2. The RSS spec doesn’t give clear guidance on how to make a unique identifier, or how unique it really needs to be, or why you would bother. So many publishers generate useless IDs.
  3. It’s difficult to compare them, because the data type of the <guid> element isn’t stable. If a certain attribute is present and contains a certain value, then the element must be treated as a string. But in other cases, the element must be treated as a URL. As we’ll see in a minute, these data types have different rules for equality, so comparing GUIDs is more difficult than it sounds.

Having said that, it does seem a little pointless having an empty <guid> but I do not know enough about RSS or XML to comment on it. So I don’t know why it is there or why it is empty.

Well I’m not expert neither on RSS Feeds, but as in that other thread I had problems with the RSS reader, however I did modified once a Wordpress RSS Feed
https://www.otzerling.com/feedname
I’d just add the post id or permalink to it, instead of leaving it empty that should prevent clients from incorrectly parsing the feed I hope, or better just add the value as is done by default in Wordpress sites:

<guid isPermaLink="false">https://www.mywebsite.com/?p=myid</guid>

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.