Skip to content
Back to skills

Pwa

ASecurity

PWA — manifest, service worker caching strategies, update lifecycle.

  • 6 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added September 5, 2026
developmentshellangularapi

Works with

  • api

Security analysis

A100/100

Scanned September 5, 2026

npx -y skills add Dev-Toolbelt/dev-team-agents --skill pwa --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Pwa?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Pwa
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/dev-toolbelt-pwa/badge)](https://www.skillsdirectory.com/skills/dev-toolbelt-pwa)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: pwa
description: PWA — manifest, service worker caching strategies, update lifecycle.
---

## Manifest (`manifest.json` / `manifest.webmanifest`)

Required fields: `name`, `short_name`, `description`, `start_url`, `display`, `theme_color`, `background_color`, `scope`

Provide icons at 192×192 and 512×512 (PNG); include a maskable icon variant.

## Service Worker

Choose a caching strategy per resource type:

| Resource | Strategy |
|----------|----------|
| App shell (HTML, JS, CSS) | Cache First |
| API responses | Network First with cache fallback |
| Static assets (images, fonts) | Stale While Revalidate |

Use Workbox (via Vite PWA plugin, `@angular/service-worker`, Nuxt PWA module, etc.) unless there is a specific reason not to.

Handle the SW update lifecycle: detect when a new version is available and prompt the user to reload — never silently swap the service worker while the app is open.

## PWA Checklist

- [ ] Lighthouse PWA audit passes (installable + PWA optimized)
- [ ] HTTPS enforced (required for service worker registration)
- [ ] Offline fallback page defined and cached
- [ ] Install prompt handled (`beforeinstallprompt` event)
- [ ] Push notifications configured if required (request permission only on explicit user action — never on page load)

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.