For Workers & Pages, what is the name of the domain?
n/a
What is the issue or error you’re encountering
Is my Worker logic eligible for Cloudflare’s advanced caching?
What are the steps to reproduce the issue?
I’ve implemented a Cloudflare Worker that performs image resizing under the hood, utilizing caching through the fetch() method as follows:
let response = await fetch(signedRequest, {
cf: {
image: imageOptions,
cacheTtl: 86400,
cacheEverything: true,
}
});
This worker serves a set of predefined image transformation presets that change infrequently.
I’d like to clarify whether enabling Tiered Cache and Cache Reserve can improve the cache hit rate for my worker’s logic. The documentation states that image transformations are not eligible for caching with Tiered Cache and Cache Reserve, but what about the responses generated by my Worker?
Specifically:
- Will Tiered Cache and Cache Reserve work at all if I enable them for the domain my Worker operates on?
- If so, would they provide any caching benefits for the responses returned by my Worker?