peterz
CDCloudflare Developers
•Created by peterz on 12/29/2024 in #workers-help
Vitest and cache
Hello, I'm trying to test the cache process of a worker (proxy requests).
It's a very simple setup, it receives a request, if there's a cached response, return it, otherwise fetch a different origin, cache that response and return it.
The worker works as expected, but in the tests the
cache.match
never matches, always returns undefined
. Am I doing something wrong? Or is this not supported?
Example code in attachment.21 replies
CDCloudflare Developers
•Created by peterz on 4/10/2023 in #pages-help
Cache Purge
I'm trying to use CF Pages, but I can't find a way to purge cache (after CMS changes), not even after deployment. All I can find to purge cache is related to zones, but I don't even have that option.
How to do this?
19 replies