[ 
https://issues.apache.org/jira/browse/COUCHDB-1337?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14501769#comment-14501769
 ] 

ASF subversion and git services commented on COUCHDB-1337:
----------------------------------------------------------

Commit ab80f3131e244af967e2d162925ee45008d54a50 in couchdb-chttpd's branch 
refs/heads/master from [~rnewson]
[ https://git-wip-us.apache.org/repos/asf?p=couchdb-chttpd.git;h=ab80f31 ]

Use attachment checksum as Etag if possible

Fixes COUCHDB-2668

Originally fixed in COUCHDB-1337


> 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
>             Fix For: 1.2, 1.2.1, 1.3
>
>         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 was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to