From dev-return-19147-apmail-couchdb-dev-archive=couchdb.apache.org@couchdb.apache.org Tue Nov 8 01:23:15 2011 Return-Path: X-Original-To: apmail-couchdb-dev-archive@www.apache.org Delivered-To: apmail-couchdb-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 884D67398 for ; Tue, 8 Nov 2011 01:23:15 +0000 (UTC) Received: (qmail 898 invoked by uid 500); 8 Nov 2011 01:23:15 -0000 Delivered-To: apmail-couchdb-dev-archive@couchdb.apache.org Received: (qmail 824 invoked by uid 500); 8 Nov 2011 01:23:14 -0000 Mailing-List: contact dev-help@couchdb.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@couchdb.apache.org Delivered-To: mailing list dev@couchdb.apache.org Received: (qmail 816 invoked by uid 99); 8 Nov 2011 01:23:14 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 08 Nov 2011 01:23:14 +0000 X-ASF-Spam-Status: No, hits=-2001.2 required=5.0 tests=ALL_TRUSTED,RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 08 Nov 2011 01:23:12 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 9E56D393F3 for ; Tue, 8 Nov 2011 01:22:51 +0000 (UTC) Date: Tue, 8 Nov 2011 01:22:51 +0000 (UTC) From: "Jacob Wright (Commented) (JIRA)" To: dev@couchdb.apache.org Message-ID: <1828045730.9252.1320715371649.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <973200332.8498.1320705052635.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Commented] (COUCHDB-1337) Use MD5 for attachment ETag MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/COUCHDB-1337?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13146015#comment-13146015 ] Jacob Wright commented on COUCHDB-1337: --------------------------------------- That's hilarious > Use MD5 for attachment ETag > --------------------------- > > Key: COUCHDB-1337 > URL: https://issues.apache.org/jira/browse/COUCHDB-1337 > Project: CouchDB > Issue Type: Improvement > Affects Versions: 1.1.1 > Reporter: Jacob Wright > Assignee: Robert Newson > Priority: Minor > Attachments: 0001-CouchDB-1337-Use-attachments-md5-as-ETag-if-availabl.patch > > > Currently attachments use the revision number of the document they're attached to for their ETag. This can be inefficient if many attachments are added, removed, or modified on the same document. Example: a website's assets might be stored on a document. Whenever one file is changed every file on the website drops out of cache. > If we could use the MD5 of the attachment for the ETag then any caches (including the browser's) will not drop unchanged files, even if the document to which they are attached is modified. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira