shadowwalker / next-pwa

Zero config PWA plugin for Next.js, with workbox 🧰
MIT License
3.89k stars 325 forks source link

Workbox plugin support #251

Open jadbox opened 3 years ago

jadbox commented 3 years ago

I'm looking to use the Workbox RangeRequestsPlugin, but it doesn't seem plugins are supported. I did find the below issue, but it was only solved by using a custom service-worker (which I'm not even sure how to do that with next-pwa properly).

Related: https://github.com/shadowwalker/next-pwa/issues/174

Thank you!

shadowwalker commented 3 years ago

Related https://github.com/GoogleChrome/workbox/issues/2809#issuecomment-880208769

shadowwalker commented 3 years ago

I added support range requests by default in next-pwa@5.3.0: https://github.com/shadowwalker/next-pwa/blob/4e7c1020f5c691b42f73ba15a3f96db2bae15115/cache.js#L64

Can you test if it works for you?