Does the Tiered Cache works for fetch with worker service bindings?

In the documentation it says that the tiered cache works with the fetch API but that counts only on fetches to external urls or does it also works when fetching from a bindded worker service?
3 Replies
Hello, I’m Allie!
Service Bindings don't actually leave workerd, so afaik nothing Cloudflare-fetch related(Image Resizing, Caching, etc.) works on it. That's not to say you can't use the Cache API manually though(though that isn't Tiered Cache Compatible).
Vinicius Zaramella
Vinicius ZaramellaOP14mo ago
The problem with Cache API is that is is locally. I want to do the computation once in a separate worker and cache in as many places as possible. What about calling another worker using a normal fetch? I would be slower but would it be cached properly?
Hello, I’m Allie!
That could probably work, as long as the two Workers are on different zones.
Want results from more Discord servers?
Add your server