Re: [ServiceWorker] HEAD request on Cache API should not return response with body (#655)

> We should maybe talk to the network guys. Seems rather unusual for the networking code to protect the API in this way.

It seems to me this is the browser following the principle of "be generous in what you accept and strict in what you expose".

Looking at the gecko code it appears that there are many cases where the content is explicitly ignored regardless of what the server does:

* HEAD method
* CONNECT method
* Responses with status codes 101, 204, 205, 304

See mNoContent in the code here:

https://dxr.mozilla.org/mozilla-central/source/netwerk/protocol/http/nsHttpTransaction.cpp#1523

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

Received on Tuesday, 31 March 2015 13:51:40 UTC