A helper library that instructs a service worker respond to HTTP requests that include a Range: header with a subset of a full response.

If you are not already using Workbox, this library can be used in a standalone form via workbox.rangeRequests.handleRangeRequest.

If you are using Workbox for routing or request handling already, then CacheRangeResponsePlugin will offer the easiest integration.

If your cached resources are large, use caution when adding this library. Some browsers need to read the entire resource into memory before it can be modified to respond to the request.

Inspired by