[service-workers-tests] Fix POST Request handling in cache-storage tests. (gecko bug 1158262) (#1788)

The Cache API spec previously allowed storing POST Requests with a body,
but no longer does.  This means that Request bodies cannot be stored at
all any more in Cache.

For example:

  "If r's url's scheme is not one of "http" and "https", or r's method is not `GET`, return a promise rejected with a TypeError."

In step 2.2 here:

  https://slightlyoff.github.io/ServiceWorker/spec/service_worker/index.html#cache-put

View on GitHub: https://github.com/w3c/web-platform-tests/pull/1788

Received on Tuesday, 28 April 2015 18:16:30 UTC