---
url: /api/symbols/workbox-swkit/range-requests/rangerequestsplugin.md
---

# RangeRequestsPlugin

Class @vite-pwa/workbox-swkit/range-requests

The range request plugin makes it easy for a request with a 'Range' header to
be fulfilled by a cached response.

It does this by intercepting the `cachedResponseWillBeUsed` plugin callback
and returning the appropriate subset of the cached response body.

## Constructor

```ts
new RangeRequestsPlugin()
```
