Return-Path: Delivered-To: apmail-incubator-couchdb-dev-archive@locus.apache.org Received: (qmail 77005 invoked from network); 11 Mar 2008 20:00:25 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 11 Mar 2008 20:00:25 -0000 Received: (qmail 56976 invoked by uid 500); 11 Mar 2008 20:00:22 -0000 Delivered-To: apmail-incubator-couchdb-dev-archive@incubator.apache.org Received: (qmail 56883 invoked by uid 500); 11 Mar 2008 20:00:22 -0000 Mailing-List: contact couchdb-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: couchdb-dev@incubator.apache.org Delivered-To: mailing list couchdb-dev@incubator.apache.org Received: (qmail 56867 invoked by uid 99); 11 Mar 2008 20:00:22 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 11 Mar 2008 13:00:22 -0700 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 11 Mar 2008 19:59:34 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 5C40D234C08B for ; Tue, 11 Mar 2008 12:58:46 -0700 (PDT) Message-ID: <2055262899.1205265526362.JavaMail.jira@brutus> Date: Tue, 11 Mar 2008 12:58:46 -0700 (PDT) From: "Christopher Lenz (JIRA)" To: couchdb-dev@incubator.apache.org Subject: [jira] Updated: (COUCHDB-4) Use HTTP Etags for cache support In-Reply-To: <2045789301.1205020066086.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/COUCHDB-4?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Christopher Lenz updated COUCHDB-4: ----------------------------------- Component/s: HTTP Interface > Use HTTP Etags for cache support > -------------------------------- > > Key: COUCHDB-4 > URL: https://issues.apache.org/jira/browse/COUCHDB-4 > Project: CouchDB > Issue Type: Improvement > Components: HTTP Interface > Reporter: Noah Slater > > CouchDb currently puts a number of headers in HTTP responses that disable > any caching. However, the docid and rev that are part of every document > would make it extremely easy to instead generate solid Etag headers, and > then return 204 Not Modified responses for GET and HEAD requests if the > client sends along the most current Etag value. > For example, instead of: > HTTP/1.1 200 OK > Server: inets/develop > Date: Sat, 15 Sep 2007 11:21:41 GMT > Cache-Control: no-cache > Pragma: no-cache > Expires: Sat, 15 Sep 2007 11:21:41 GMT > CouchDB should return something like: > HTTP/1.1 200 OK > Server: inets/develop > Date: Sat, 15 Sep 2007 11:21:41 GMT > Cache-Control: must-revalidate > Etag: ${docid}@${rev} > Sufficiently sophisticated clients (such as Python httplib2) could then use > If-None-Match to perform conditional GET requests. > Thinking about it again, as the docid is already in the URL, only the rev > is needed in the Etag headers. > -- > Comment 1 by cml...@gmx.de, Oct 01, 2007 > See also http://intertwingly.net/blog/2007/09/24/Tests-Id-Like-CouchDB-to-Pass#etag -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.