-
-
Notifications
You must be signed in to change notification settings - Fork 50
Open
Description
I would like to use async cache dedupe for http request caching. However, I'm missing a way to set the stale value on a per entry basis after the request is completed, i.e.
cache.define('request', async url => {
const { headers, body } = await undici.request(url)
if (headers['cache-control') {
// Set the stale/ttl for the return value
}
return await body.json()
})Any ideas whether this would be possible to add?
simone-sanfratello
Metadata
Metadata
Assignees
Labels
No labels