Re: Weak ETag handling

Lisa Dusseault wrote:
>         etag.weak = (value[:2] == "W/")
>        
>         if etag.weak:
>             etag.tag = value[2:]
>         else:
>             etag.tag = value
> 
> Stripping the "W/" off a weak etag to get a strong one, because it works with
> Apache.

But it doesn't work with Apache.  Apache issues a weak etag when file
contents can change without the weak etag changing.

Ergo, the Python code doesn't work with Apache, unless it's making
additional assumptions about specific server behaviour - not just
Apache, but the application which updates files served by Apache.

The Python code is clearly specific to a particular server application
- or most likely buggy.  If it's specific to a server application, it
can assume anything it likes about the meaning of weak etags.

-- Jamie

Received on Wednesday, 4 February 2009 12:34:07 UTC