Zephyr is a lightweight service worker library designed to provide efficient caching strategies for web applications. It offers a simple yet powerful way to cache network requests and responses using IndexedDB, enabling offline access and performance optimization.
You can either install Zephyr via npm:
npm install @solutas/zephyr --save
or load the installer via CDN
To integrate Zephyr into your web application, follow these steps:
- Create the
zephyrConfig.js
file to your root directory of the project. - Add the following code to your HTML file, preferably before the closing