ember-fastboot / ember-fastboot/fastboot-app-server

cache expiration after download

Open
#54 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
No language data
Stars
140
Forks
70
PR merge metrics
No merged PRs in 30d

Description

hi, I would like to have a custom hook to get notified when a download is finished or have access to the caching layer from the downloader, something like the following example, then we can get the new content as fast as we can
```js
const downloader = new Downloader({
download(){
downloadPromise.then(() => this.cache.expire(`${key}:${path}`))
}
})

// OR

let server = new FastBootAppServer({
...,
afterDownload: function () {
return this.cache.expire(`${key}:${path}`)
}
})
```
I think this expiration feature is not present yet, any thoughts? let me know if that sounds good to you and if I can help implementing this. thanks

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.