mirror of
https://github.com/lexmount/moli.git
synced 2026-11-23 16:02:35 +00:00
Keep internal response status, status text and headers through Window and Worker fetch, Response.clone(), Cache storage and FetchEvent.respondWith(). This preserves CORP checks when a require-corp client receives an opaque response from a service worker. Keep public opaque headers empty and immutable, and use the public header view when matching Vary in Cache. Cover streamed and materialized responses, opaque redirects, filtered HTTP 206 responses and Vary:* cache roundtrips. Reject invalid filtered respondWith responses before following their restored internal Location headers.