service_worker icon indicating copy to clipboard operation
service_worker copied to clipboard

Allow Responses to be constructed with a body/headers

Open jifalops opened this issue 6 years ago • 0 comments

The platform Response type has a default constructor.

I am trying to write an interface that can cache to a File or browser cache and am a bit stuck without the ability to construct a response myself. I have a workaround in mind but it breaks the semantics of the cache being a local resource since I'll have to allow it to handle the fetching so it can instantiate a Response.

jifalops avatar Aug 01 '18 20:08 jifalops