Current PouchDB downloads all attachments from all revisions when replicating from a remote repository, instead of smartly checking what attachments already exist locally. The related GitHub issue is #2674
You need a CouchDB running to reproduce the issue. We assume we have
one at http://localhost:5984 with
cors.origins set to
*
sync-test
in your CouchDB{"_id": "profile"}
var db = new PouchDB('mydb')
db.replicate.from('http://localhost:5984/sync-test', {live: true})
low-profile-dog-1.png
(or what ever your 1st attachment was)
was loaded twice by PouchDB, which is inefficient
We have uploaded all requests for reference as pouchdb-requests.har. You can open the file direcly in Chrome, or you can upload it to ericduran.github.io/chromeHAR