diff --git a/README.md b/README.md index e7dfc42..245cd15 100644 --- a/README.md +++ b/README.md @@ -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) [![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