chore: update readme

This commit is contained in:
Ayo Ayco 2024-08-03 22:19:47 +02:00
parent ab9ba7f5d4
commit 8cd30fcaa1

View file

@ -6,7 +6,9 @@
[![Package information: NPM license](https://img.shields.io/npm/l/@ayco/astro-sw)](https://www.npmjs.com/package/@ayco/astro-sw) [![Package information: NPM license](https://img.shields.io/npm/l/@ayco/astro-sw)](https://www.npmjs.com/package/@ayco/astro-sw)
[![Bundle Size](https://img.shields.io/bundlephobia/minzip/@ayco/astro-sw)](#library-size) [![Bundle Size](https://img.shields.io/bundlephobia/minzip/@ayco/astro-sw)](#library-size)
The integration accepts service worker path and automatically injects dynamic variables such as `assets` generated by Astro for caching. The integration accepts service worker path and automatically injects dynamic variables such as `__assets` generated by Astro for caching.
The main philosophy is to [invert the control](https://en.wikipedia.org/wiki/Inversion_of_control) compared to other integrations that generate the service worker for devs. The [service worker](https://web.dev/articles/offline-cookbook) API is such a powerful feature that developers need to be able to make decisions in using it.
## Installation ## Installation