purging fetch cache that uses a custom cache key
I'm using Workers to proxy requests to an origin server and cache the responses using the
Is there a way to purge this
but that didn't seem to have an effect in the subsequent requests to the cached resource (i.e. I always get
But that didn't work either. Any insights would be greatly appreciated.
fetch cache. Essentially I'm doing something like:Is there a way to purge this
fetch cache via the API, using the Purge Cache endpoint? I've tried doing:but that didn't seem to have an effect in the subsequent requests to the cached resource (i.e. I always get
CF-Cache-Status: HIT and Last-Modified remains unchanged). I then tried different combinations like:But that didn't work either. Any insights would be greatly appreciated.