You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@couchdb.apache.org by "Robert Newson (Updated) (JIRA)" <ji...@apache.org> on 2011/11/08 00:52:52 UTC

[jira] [Updated] (COUCHDB-1337) Use MD5 for attachment ETag

     [ https://issues.apache.org/jira/browse/COUCHDB-1337?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Robert Newson updated COUCHDB-1337:
-----------------------------------

    Attachment: 0001-CouchDB-1337-Use-attachments-md5-as-ETag-if-availabl.patch

Use md5 when available.
                
> 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