miniflare icon indicating copy to clipboard operation
miniflare copied to clipboard

Check key actually matches when calling `Cache#match`

Open mrbbot opened this issue 2 years ago • 0 comments

If a key exists in the cache, Miniflare will always return the matching Response on match(). This is not always correct: we should be calling satisfiesWithoutRevalidation from http-cache-semantics first.

There are also a couple other return cases we should implement: https://developers.cloudflare.com/workers/runtime-apis/cache/#match

mrbbot avatar Apr 23 '22 10:04 mrbbot