← Back to release summary

Range request header in a Service Worker

Category
Service Worker
Type
New or changed feature
Status
Enabled by default (Chrome 87)
Intent stage
Shipped

Summary

Range request header can be passed through a service worker if it's not modified. This enables service workers can work with requests made by media elements such as video and audio.

Motivation

This spec change means that range requests (such as those from media elements) are allowed to pass through a service worker as long as they aren't modified. This fixes a long standing issue where media elements behave oddly if intercepted by a service worker (as the range headers were lost).

Standards & signals

Explainers: https://github.com/whatwg/fetch/pull/560

View on chromestatus.com