Update README.md

This commit is contained in:
Ayo Ayco 2024-08-17 08:27:49 +02:00 committed by GitHub
parent 89caf380e1
commit 2ed8253e33
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -6,8 +6,6 @@
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 let devs retain the flexibility for various [caching strategies](https://developer.chrome.com/docs/workbox/caching-strategies-overview/). 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 let devs retain the flexibility for various [caching strategies](https://developer.chrome.com/docs/workbox/caching-strategies-overview/).
Other integrations exist which will generate a service worker for you, but [there are good reasons](https://developer.chrome.com/docs/workbox/modules/workbox-build#when_not_to_use_generatesw) to avoid this.
## Installation ## Installation
In your [Astro](https://astro.build) project: In your [Astro](https://astro.build) project: