Queues failed requests and uses the Background Sync API to replay them when the network is available.
npm install --save-dev workbox-background-sync
Read more at this module's documentation page.
Sample Code and Examples
View the sample code to see this module put to use.
Visit https://workboxjs.org/ to learn more about what Workbox can do for you.