httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Roy T. Fielding" <field...@kiwi.ics.uci.edu>
Subject Re: [PATCH] ETags and Last-Modified, take 3
Date Wed, 03 Sep 1997 03:19:05 GMT
Ummm, I may have forgotten to mention this, but conditional requests
for anything other than GET or HEAD must be checked prior to invoking
the method on the resource.  There is no way for the server core to
make that decision for any resource that is not handled by the server
core, which is the main reason why they are passed unmolested to the
actual handler and not enforced on the response from the handler.

In other words, script output must not be subject to meets_conditions
unless method == M_GET and status == 200.  Otherwise, the server should
just let the CGI handle it (or not).  The server should never kill a CGI,
not even for a HEAD -- just let it run (my preference) or send it SIGPIPE.
I don't care how long the script may run -- if it is important, then they
can bloody well fix the script.

Also, an Etag must include a control stamp which is guaranteed to change
when any part of the content of the response would change.  That is
definitely not the case for the suggested change to mod_include.c, so
you'll have to remove that.

Reorganizing the calls so that they are separate is still a good idea,
since this will make it easier for non-core handlers to check conditions
before performing an unsafe method.

....Roy

Mime
View raw message