I use BackgroundSyncPlugin from workbox to synchronize my requests. All work well offline, if only when there is a POST request, the request is well in indexedDB ( and is well done once the user is online ) but when sending the form I come across my fallback page. My service-worker :
const bgSyncPlugin = new BackgroundSyncPlugin('offlineSyncQueue', {
maxRetentionTime: 0.1 * 60,
callbacks: {
queueDidReplay: showNotification()
}
});
registerRoute(
/http:\/\/localhost:3001/,
new NetworkOnly({
plugins: [bgSyncPlugin]
}),
'POST'
);
What i want is to not have fallback page here, but the page ( even the post request is in IndexedDb)