Parameters
- cache: Cache
- origin: string
- site: string
- path: string
- res: Response
- generation: number | undefined
- doCache: string
- isAuthenticated: boolean
Returns { outcome: string; write?: Promise<unknown> }
an x-cfw-edge-put value, and the write to defer when there is one
Stores a rendered page at the edge, or says why it did not.
Only a 200 is stored (a cached 503 placeholder would serve forever), with headers from an allow-list because
cache.put()rejects some combinations. The write is returned forwaitUntilrather than awaited: awaiting a 97 KB put cost 12.5 ms before the response left.