Spec requires that redirects received during the update job should be treated as follows:
* If the request was for the main script, redirects should raise an error. (https://w3c.github.io/ServiceWorker/#update-algorithm 9-9)
* If the request was not for the main script, network loader should follow the redirects. (https://w3c.github.io/ServiceWorker/#update-algorithm, 22)
However, current implementation of OnReceivedRedirects() in
SWNewScriptLoader, SWWriteToCacheJob and SWSingleScriptUpdateChecker seems to always raises an error.
Spec requires that redirects received during the update job should be treated as follows:
* If the request was for the main script, network loader should raise an error. (https://w3c.github.io/ServiceWorker/#update-algorithm 9-9)
* If the request was not for the main script, network loader should follow the redirects. (https://w3c.github.io/ServiceWorker/#update-algorithm, 22)
However, current implementation of OnReceivedRedirects() in
SWNewScriptLoader, SWWriteToCacheJob and SWSingleScriptUpdateChecker seems to always raises an error.
Comment 1 by momohatt@google.com
, Sep 27