Details

    • Type: Improvement Improvement
    • Status: Resolved
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 1.1.1
    • Fix Version/s: 1.2, 1.2.1, 1.3
    • Component/s: None
    • Labels:
      None

      Description

      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.

        Activity

        Jacob Wright created issue -
        Robert Newson made changes -
        Field Original Value New Value
        Assignee Robert Newson [ rnewson ]
        Hide
        Robert Newson added a comment -

        Use md5 when available.

        Show
        Robert Newson added a comment - Use md5 when available.
        Robert Newson made changes -
        Hide
        Robert Newson added a comment -

        Feedback from devs welcome.

        Show
        Robert Newson added a comment - Feedback from devs welcome.
        Hide
        Paul Joseph Davis added a comment -

        +1

        Also, I just realized why you hopped onto this ticket so fast. Had I looked at the number harder I would've been fighting for it.

        Show
        Paul Joseph Davis added a comment - +1 Also, I just realized why you hopped onto this ticket so fast. Had I looked at the number harder I would've been fighting for it.
        Hide
        Jacob Wright added a comment -

        That's hilarious

        Show
        Jacob Wright added a comment - That's hilarious
        Robert Newson made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Fix Version/s 1.2 [ 12315198 ]
        Fix Version/s 1.3 [ 12318350 ]
        Fix Version/s 1.1.2 [ 12318873 ]
        Resolution Fixed [ 1 ]
        Robert Newson made changes -
        Fix Version/s 1.2.1 [ 12319457 ]
        Fix Version/s 1.1.2 [ 12318873 ]
        Hide
        ASF subversion and git services added a comment -

        Commit ab80f3131e244af967e2d162925ee45008d54a50 in couchdb-chttpd's branch refs/heads/master from Robert Newson
        [ 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

        Show
        ASF subversion and git services added a comment - Commit ab80f3131e244af967e2d162925ee45008d54a50 in couchdb-chttpd's branch refs/heads/master from Robert Newson [ 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
        Transition Time In Source Status Execution Times Last Executer Last Execution Date
        Open Open Resolved Resolved
        12h 57m 1 Robert Newson 08/Nov/11 11:27

          People

          • Assignee:
            Robert Newson
            Reporter:
            Jacob Wright
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development