Re: Last-Event-ID in http://dev.w3.org/html5/eventsource/

On 02.03.2010 19:11, Maciej Stachowiak wrote:
>
> On Mar 2, 2010, at 4:07 AM, Julian Reschke wrote:
>
>> On 02.03.2010 12:53, Maciej Stachowiak wrote:
>>> Using If-None-Match this way seems like a bad fit in a couple of ways:
>>>
>>> - Event IDs are not ETags at the HTTP level. It seems like a layering
>>> violation to treat event IDs, or indeed anything in the response body
>>> rather than in the ETag header, as entity tags.
>>
>> Event IDs *could* be used as ETags, in which case there wouldn't be a
>> layering violation.
>
> How? The ETag is sent before the first event, as part of the HTTP
> headers. The server can't know the last event it will send, if the event
> stream is dynamically generated.
> ...

Actually, it could (using Trailers), but I wasn't going to suggest 
something radical like that :-).

So yes, you are right, equating the ETag with the Event-ID doesn't work.

Best regards, Julian

Received on Tuesday, 2 March 2010 18:23:40 UTC