New issue
Advanced search Search tips

Issue 650636 link

Starred by 1 user

Issue metadata

Status: WontFix
Owner: ----
Closed: Sep 2016
Components:
EstimatedDays: ----
NextAction: ----
OS: All
Pri: 3
Type: Bug



Sign in to add a comment

ServiceWorker Cache does not support partial responses

Project Member Reported by ricea@chromium.org, Sep 27 2016

Issue description

Version: 55.0.2863.0

What steps will reproduce the problem?
(1) Create or acquire a Response object "response" with status code 206
(2) Call cache.put(request, response)

What is the expected output?

The returned promise resolves successfully and the Response is added to the cache.

What do you see instead?

The promise is rejected with a TypeError "Partial response (status code 206) is unsupported".
https://cs.chromium.org/chromium/src/third_party/WebKit/Source/modules/cachestorage/Cache.cpp?q=%22Partial+response+(status+code+206)+is+unsupported%22


Compatibility info:
The operation succeeds in Firefox. Firefox's behaviour is consistent with the spec:
https://www.w3.org/TR/service-workers/#cache-put
 

Comment 1 Deleted

Comment 2 by ricea@chromium.org, Sep 29 2016

Status: WontFix (was: Untriaged)
This is working as intended according to https://github.com/w3c/ServiceWorker/issues/937 but just hasn't been added to the spec yet.

Apparently it's going to be "fixed" in Firefox: https://bugzilla.mozilla.org/show_bug.cgi?id=1264181
Components: Blink>Storage>CacheStorage
Components: -Blink>ServiceWorker>Cache

Sign in to add a comment