Re: [ServiceWorker] Can we change the body attribute of Request/Response to a method? (#606)

I'm mainly thinking about the cost of IPC(Inter Process Communication).

In Chrome there are three processes.
 (1) Renderer process for page.
 (2) Browser process which handles requests and caches.
 (3) Renderer process for ServiceWorker.

When the page sends a HTTP request with body, and the ServiceWorker executes "fetch(event.request)".
 - The renderer(1) sends the request to the browser process(2).
 - The browser process(2) sends it the ServiceWorker(3).
 - The ServiceWorker(3) sends it to the browser process(2).
 - The browser process(2) sends it to the network.
In such case we don't need to send the body content to the ServiceWorker(3).


When the ServiceWorker(3) get the response in the cashe from the browser process(2) and returns it to the page(1), we don't need to send the body to the ServiceWorker(3).

---
Reply to this email directly or view it on GitHub:
https://github.com/slightlyoff/ServiceWorker/issues/606#issuecomment-70796685

Received on Wednesday, 21 January 2015 07:42:21 UTC