check if fetch request returned a cached response?
In a worker if I have a fetch request:
is it possible to determine if it's a cache hit?
is it possible to determine if it's a cache hit?
const response = await fetch('...', {
// ...
cf: {
cacheTtl: 1 * 60 * 15, // 15m
cacheEverything: true
}
})Cache Status ${response.headers.get("CF-Cache-Status")}Cache Status ${response.headers.get("CF-Cache-Status")}