Unable to Purge Url Fetched from Cloudflare Worker

Hi all,

I’ve been having some issues trying to purge a specific url retrieved from a Cloudflare worker.

This is the snippet that I’m trying to use.

response = await fetch(api , {
cf: { cacheKey: event.request.url }
});

I am using a cacheKey of request url which is {workerurl}/{relativeImageUrl}?key={enumeration}

An example of this would be https://testWorker.testDomain.dev/test.png?key=scale

When I call fetch, I replace the Cloudflare worker url with a third party url to so I can return the image.

This works.

However, I have not been able to purge the url from Cloudflare’s cache. So, if I update the image in my blob store, it still returns the old image. I’m not sure why I cannot purge it. I’ve tested this outside of a Cloudflare worker and it works correctly.

Any help would be appreciated.

Any luck Brian? I’m investigating the same issue