Skip to main content

edge_cache_block

Function edge_cache_block 

Source
pub fn edge_cache_block() -> TomlBlock
Expand description

L7 (#2414): [cache] turning Workers Cache on for a Worker whose context declares an EdgeCache instance. Cloudflare then answers a GET or HEAD from its edge cache when it holds a fresh response, without running the Worker, and stores what the Worker sends as RFC 9111 allows: which is why such a Worker sends no-store on every response but a @cache route’s 2xx (workers_entry). A Worker without an instance gets no stanza.