I've written code that can return the Response of all files that are no longer in use from a given cache to then delete. I've tried using cache.delete
already with a request from cache.matchAll()
here's the request that's returning false.
Response
{type: "basic"
url: "http://127.0.0.1:5500/bundles/bundle-f6d8ec63.css"
redirected: false
status: 404
ok: false
statusText: "Not Found"
headers: Headers {}
body: (...)
bodyUsed: false
__proto__: Response
}
You can see here that it does exist in the cache
It looks like cache.delete is meant for removing whole caches but I only want to remove a few select files. Is there a way to do this?