On Thu, Jul 2, 2009 at 6:37 PM, Bob Wyman<[email protected]> wrote:
> On Wed, Jun 3, 2009 at 5:56 AM, Dirk Meyer <[email protected]> wrote:
>> I want to know if my storage changed. I want
>> to know if I need to get the items from
>> MyStorage or if they are still the same as before.
>
> In another thread, the idea of timestamps for items is being discussed. I
> suggested there that it might be appropriate to mirror the behavior of HTTP
> "if-modified-since" requests by allowing clients to specify a timestamp for
> the oldest items to retrieve from persistent storage. If timestamps on items
> are supported would this satisfy your requirement?
> For instance:
>
>  <pubsub xmlns='http://jabber.org/protocol/pubsub'>
>     <items node='urn:xmpp:pubkey:0'
>      if-modified-since='2009-07-01T01:33:23Z'/>
>
>   </pubsub>
>
> Note: Of course, if you use if-modified-since, you should always use a
> timestamp that was previously returned by the specific server you were
> talking to -- do not try to figure out by looking at your own local wall
> clock time...
>

The other problem with timestamps was highlighted in the roster
versioning discussions - timestamps are not unique (multiple items may
be published by different people to the same node in under a second
[or whatever time resolution you use]).

Matthew

Reply via email to