W3C home > Mailing lists > Public > whatwg@whatwg.org > November 2010

[whatwg] Clarification request on Server-Sent Events Last-Event-ID

From: Nicholas Zakas <nzakas@yahoo-inc.com>
Date: Fri, 12 Nov 2010 14:53:51 -0800
Message-ID: <B66541E954ECF146AD8CA69D34A283FF2570BBBAE6@SP2-EX07VS02.ds.corp.yahoo.com>
Just a quick question about the Last-Event-ID header. The spec currently says:

>>If the event source's last event ID string is not the empty string, then a Last-Event-ID HTTP header must be included with the request, whose value is the value of the event source's last event ID string, encoded as UTF-8.

Consider the following scenario: a connection is established and one of the events has an id of "foo", so the last event ID of the event source is now "foo". The connection drops and on reconnect, the header Last-Event-ID: foo is sent per the spec. The next stream of events coming through do not have any IDs. The connection is dropped again.

The question is whether or not Last-Event-ID: foo should be sent a second time? Technically, it is the last event ID of the event source, and the spec never mentions resetting the last event ID outside of an empty "id" field in the stream.

Thanks.

-Nicholas

______________________________________________
Commander Lock: "Dammit Morpheus, not everyone believes what you believe!"
Morpheus: "My beliefs do not require them to."

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.whatwg.org/pipermail/whatwg-whatwg.org/attachments/20101112/d20c8faf/attachment.htm>
Received on Friday, 12 November 2010 14:53:51 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:59:28 UTC