ReST low latency - how should I reply to a GET while an upload is pending?
问题 I am designing a ReST API which follows the basic CRUD pattern. My API can receive a request to update a resource which may take a short time to process. Ideally I would like to inform clients that a new version is about to be available and that there is some uncertainty over when the version I have cached actually expires. So the process I intend to use something like this (improvements welcome): client: GET /some/item myapi: 200 OK last-modified: time-stamp-of-v1 etag: some-hash-relating-to