pwa_generate_sw
Generate a service worker with caching strategies and lifecycle management to control offline behavior and asset caching.
Instructions
Generate a service worker with caching strategies and lifecycle management
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| api_key | No | API key for authentication | |
| strategy | Yes | Primary caching strategy | |
| use_workbox | No | Use Workbox library | |
| precache_routes | No | Routes to precache |