shadowwalker / next-pwa

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

Failed to execute 'add' on 'Cache' #443

Closed rejoanahmed closed 1 year ago

rejoanahmed commented 1 year ago

### next-pwa config const withPWA = require('next-pwa')({ dest: 'public', cacheOnFrontEndNav: true, disable: false, })

I have custom 404.tsx page.

anytime the user hits 404 page, the error appears

### Unhandled Runtime Error TypeError: Failed to execute 'add' on 'Cache': Request failed

this happens only when online. but when offline, the error doesn't occur.

is there any configs i need to add?

panta82 commented 10 months ago

I am getting this.

What was the solution?