Releases: Nagibaba/easy-service-worker
Releases · Nagibaba/easy-service-worker
1.2.3
Easy Service Worker
1.2.0 Change the name from 'Lazy' to 'Easy'
Edited some bugs
- LazySWSkip changed to LazySWIgnore
- On background update process, if status code 300 or more is returned by the server, a message is sent to all tabs
Lazy SW Skip option
Added option for skipping regenerated texts as tokens etc.
Wrap any regenerated text inside <!--LazySWSkip--> <!--/LazySWSkip-->
First
In this release
- Caches only urls. Images and other assets should be the concern of browsers
- First, returns cached version of url.
- After that, makes a fetch request on background to that url.
- If there is any difference between cached and remote html, then updates it on background and sends a message to client
- When client gets a message to refresh, it can reload the page or load via js (example: jQuery load function)