-
Open DevTools.
- Switch to the Network panel.
- Toggle `Disable cache` checkbox on (it's unchecked by default).
- Click `Make Fetch request` button below.
- Observe that request is successfully completed with status 200.
-
Disconnect from actual network (DevTools offline doesn't work for
background sync).
- Again, click `Make Fetch request` button below.
- Observe that request is aborted due to no network.
-
Connect to your network and observe the Network panel in DevTools.
-
Once the network is connected, you will see that the request is retried
automatically upon the `sync` event.
Back to Demos
Docs |
GitHub |
@workboxjs