Partial read during cache update causes cache to be purged and re-downloaded in full

If you run the test against the previous code for `/lib/get.js` the test proves that the issue described in #20 exists i.e. somewhere during the 100 requests a failure occurs and a request for "/-/all" is sent. The test passes when run against the new `/lib/get.js` code in the PR.