Re: PATCH vs PUT w/Content-Range

On Wed, 28 Apr 2004, Jamie Lokier wrote:

> Alex Rousskov wrote:
> > > I do mention one reason in the draft -- the problem of write-through
> > > caches.  The cache (if an intermediary) could see a PUT with a body and
> > > save the body as the new body for the resource, even though the PUT
> > > request body is only a diff or content range.
> >
> > Does anybody know of any implementation that caches PUT bodies?
>
> I don't know.
> It would be a violation of RFC 2616 (HTTP/1.1) section 13.10 though:

Yes, that is why I have doubts that "ranged PUT" is dangerous for the
reasons cited above. There may be other reasons, of course. And even
if ranged PUT is safe, there may be reasons to use a PATCH method.
Nevertheless, rationale should reflect reality.

Alex.

Received on Wednesday, 28 April 2004 18:25:48 UTC