Implemented a custom caching strategy as a workbox plugin.
Workbox strategies don't allow for caching POST requests by default.
We can now use response from the cache first and revalidate in the background, this allows for a good compromise between network first and cache first.
Closes #254
In this PR:
POST
requests by default.Demo:
⚠️ Risk:
Behaviour
Screenshots and Testing
Service workers strategy using workbox are really hard to test.
To test locally, you can see the responses being cached in the
milestones
cache:The revalidation can be seen in the network tab
🙏🏽