I implemented a Netlify form. The form would submit, but I’d never see the success dialog, and my submissions weren’t showing up in my approved, or spam folders.
I was also using Workbox’s
injectManifest in my Service Worker to precache all the static content of my site. Turns out that the SW was handling the form’s POST request to my page by serving a cached copy.
I disabled Workbox, but now my site doesn’t work offline anymore. A better solution might be to configure Workbox to only serve GET requests from the cache.
Has anyone else dealt with this?
BONUS POINTS: is it possible to have Netlify forms work offline as well? Maybe using Background Sync?