chore: update readme
This commit is contained in:
parent
8d847a5769
commit
3da39e28b4
1 changed files with 1 additions and 5 deletions
|
@ -1,14 +1,10 @@
|
|||
> **>>> TL;DR:** Simple Astro integration to use your own authored service worker; by default, devs retain full control as opposed to getting generated sw code
|
||||
|
||||
# Astro SW
|
||||
|
||||
[](https://www.npmjs.com/package/@ayco/astro-sw)
|
||||
[](https://www.npmjs.com/package/@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 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.
|
||||
The integration accepts path to your own authored [service worker](https://developer.mozilla.org/en-US/docs/Web/API/Service_Worker_API) and automatically injects dynamic variables such as `__assets` generated by Astro for caching. The goal is to [invert the control](https://en.wikipedia.org/wiki/Inversion_of_control) (i.e., compared to generating the service worker script code), and let devs retain the flexibility for various [caching strategies](https://developer.chrome.com/docs/workbox/caching-strategies-overview/).
|
||||
|
||||
## Installation
|
||||
|
||||
|
|
Loading…
Reference in a new issue