W3C home > Mailing lists > Public > ietf-http-wg@w3.org > January to March 2009

Re: Weak ETag handling

From: Jamie Lokier <jamie@shareable.org>
Date: Wed, 4 Feb 2009 12:33:32 +0000
To: Lisa Dusseault <lisa.dusseault@gmail.com>
Cc: ietf-http-wg@w3.org
Message-ID: <20090204123331.GB8111@shareable.org>

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

This archive was generated by hypermail 2.3.1 : Monday, 9 September 2019 17:47:18 UTC