Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Are RSS guids actually expected to be _globally_ unique?

Tags:

rss

Just trying to clear up what level of uniqueness the <guid> element in an RSS feed is actually supposed to have. I understand that one of its main purposes is to be something that software can use to identify the item for such purposes as read/unread tracking. But am I right that:

  • once a guid has been used, it should never be used again, even if the last instance was removed from the feed ages ago?
  • it should be unique not only within a feed, but also across multiple feeds and even (to the extent it can be achieved) unrelated websites?
  • one of the reasons it's common to use URLs as guids is to help achieve the above?

Moreover, if a program does encounter the same guid twice in different feeds, what should happen?

  • it treats them as distinct RSS items, since they are in different feeds?
  • they are considered to be one and the same item, just published in multiple places (similar to Usenet crossposts)?
  • it depends on whether they're on the same site/domain?
  • the behaviour is undefined?
like image 880
Stewart Avatar asked Jul 28 '11 00:07

Stewart


People also ask

What does <GUID> mean in RSS?

The <guid> element defines a unique identifier for the item. Note: Aggregators must view the guid as a string. There are no rules for the syntax. It's up to the creator of the RSS document, to establish the uniqueness of the string. Tip: GUID = Globally Unique Identifier. Optional.

What is a <GUID> element?

The <guid> element defines a unique identifier for the item. Note: Aggregators must view the guid as a string. There are no rules for the syntax. It's up to the creator of the RSS document, to establish the uniqueness of the string. Tip: GUID = Globally Unique Identifier.

What are the rules for the syntax for the GUID?

There are no rules for the syntax. It's up to the creator of the RSS document, to establish the uniqueness of the string. Tip: GUID = Globally Unique Identifier. Optional. If set to true, the reader may assume that it is a permalink to the item (a url that points to the full item described by the <item> element).

What is the default value of Guid?

Tip: GUID = Globally Unique Identifier. Optional. If set to true, the reader may assume that it is a permalink to the item (a url that points to the full item described by the <item> element). The default value is true. If set to false, the guid may not be assumed to be a url


1 Answers

It's a good question and the answer is No.

It was a bad choice of terminology.

The guids only have to be unique to the feed.

The goal in adding them was to have a way for an aggregator to know for sure whether or not it's seen the item before. A locally-unique id suffices for that purpose.

like image 137
Dave Winer Avatar answered Sep 18 '22 19:09

Dave Winer