chore: update readme
This commit is contained in:
parent
ab9ba7f5d4
commit
8cd30fcaa1
1 changed files with 3 additions and 1 deletions
|
@ -6,7 +6,9 @@
|
||||||
[](https://www.npmjs.com/package/@ayco/astro-sw)
|
[](https://www.npmjs.com/package/@ayco/astro-sw)
|
||||||
[](#library-size)
|
[](#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
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue