W3C libwww Web Commander

Web Commander Solves the Lost Update Problem

The Lost Update Problem has been present in most distributed authoring sessions using rudimentary HTTP/1.0 features. the Web Commander can now demonstrate how to avoid this problem based on HTTP/1.1 features including persistent cache, strong etags, if-match header fields and HEAD requests.

A couple of notes:

Testing Whether a Document Exists using HEAD Requests

If the user wants to save a document that we don't know anything about then we have to issue a HEAD request before doing a PUT.

Using the Etag in subsequent PUT Requests

When a new document has been created on the server, it sends back the etag in the 201 (Created) response. This etag is stored in our persistent HTTP/1.1 cache. Once the etag is known, it is used on all subsequent PUT requests in a if-match header field. If the resource has changed on the server the etags will no match and the PUT will not succeed. Instead the user will be given the same two options as above, that is, either to get the new version or to override it.


Henrik Frystyk Nielsen,
@(#) $Id: NoMoreLostUpdates.html,v 1.1 1998/09/17 21:17:42 frystyk Exp $