[ServiceWorkerNewScriptLoader] Set headers only for main script requests
Spec requires that in the update of service workers, we should set the header only for the network request of the main script, and we shouldn't set headers for that of imported scripts. (https://w3c.github.io/ServiceWorker/#update-algorithm) Current ServiceWorkerNewScriptLoader sets the header for both kinds of the scripts, so this patch fixes it to conform to the spec. Change-Id: I159019e492ea212e58e6b0fcdf3f9a1e57928bdb Reviewed-on: https://chromium-review.googlesource.com/1249422 Commit-Queue: Makoto Shimazu <shimazu@chromium.org> Reviewed-by:Makoto Shimazu <shimazu@chromium.org> Cr-Commit-Position: refs/heads/master@{#595373}
Showing
Please register or sign in to comment