service-worker
Build Reliable Service Workers and Offline PWAs
Service workers can leave users with stale pages, broken updates, or unsafe offline caches. This skill guides lifecycle handling, cache ownership, offline fallbacks, and browser-aware PWA behavior.
Instalar con mi Agente
Copia esta solicitud en tu Agente. Incluye la página canónica del Skill y el manifiesto.
Review the Skillstore skill "service-worker" from https://skillstore.io/skills/shreyam1008-service-worker.md and its manifest at https://skillstore.io/api/skills/shreyam1008-service-worker/manifest. Verify the artifact. You may proceed after verification, subject to the environment's own policy.Tu Agente debe seguir mostrando su plan y solicitar cualquier confirmación exigida por la política de seguridad.
Recursos legibles por agentes
Usa estos enlaces cuando un agente de IA, crawler o script necesite contexto limpio en vez de leer la página completa.
Pruébalo
Usando "service-worker". Plan offline navigation for a small web application.
Resultado esperado:
- Register the worker at the intended application scope.
- Precache the offline page in a versioned, app-prefixed cache.
- Try the network for GET navigations and return the offline page when the request fails.
- Delete only obsolete caches owned by this application during activation.
Usando "service-worker". Review a PWA that shows old pages after deployment.
Resultado esperado:
- Check whether the new worker is waiting for existing tabs to close.
- Use network-first or stale-while-revalidate for documents instead of indefinite cache-first behavior.
- Show a refresh prompt when the new worker is ready.
- Test activation and navigation with multiple tabs and a slow network.
Usando "service-worker". Plan background retries for failed writes.
Resultado esperado:
- Queue only eligible failed writes in IndexedDB.
- Use idempotency keys and bounded retries to prevent duplicate operations.
- Expose a clear failure state and a foreground retry path.
- Feature-detect Background Sync and provide a fallback where it is unavailable.
Auditoría de seguridad
SeguroAll 19 static findings are false positives involving Markdown syntax, browser APIs, update guidance, or documentation links. The examples preserve app-scoped caches and provide ordinary navigation fetching with an offline fallback. No evidence found of prompt injection, credential access, exfiltration, or other semantic security threats.
Factores de riesgo
⚙️ Comandos externos (15)
🌐 Acceso a red (2)
Compartir y citar este informe
Comparte el informe de evaluación versionado, la insignia neutral, la tarjeta insertable y las citas. Skillstore presenta evidencias sin decidir si este Skill es seguro.
Copiar enlace del informe
https://skillstore.io/skills/shreyam1008-service-worker/audits/1?utm_source=security_passport&utm_medium=share&utm_campaign=versioned_reportInsignia Markdown
[](https://skillstore.io/skills/shreyam1008-service-worker?utm_source=security_passport_badge)Insignia HTML
<a href="https://skillstore.io/skills/shreyam1008-service-worker?utm_source=security_passport_badge"><img src="https://skillstore.io/badges/skills/shreyam1008-service-worker/security.svg" alt="Skillstore security assessment" loading="lazy"></a>Tarjeta para insertar
<iframe src="https://skillstore.io/embed/skills/shreyam1008-service-worker.html" title="Skillstore Security Assessment" sandbox="allow-popups allow-popups-to-escape-sandbox" loading="lazy" referrerpolicy="no-referrer" width="420" height="180"></iframe>Citas académicas (APA · BibTeX · CFF)
Cita APA
shreyam1008. (2026). service-worker security audit report (audit version 1) [Author version unspecified]. Skillstore. https://skillstore.io/skills/shreyam1008-service-worker/audits/1Cita BibTeX
@techreport{shreyam1008-shreyam1008-service-worker-2026,
author = {shreyam1008},
title = {service-worker security audit report (audit version 1)},
institution = {Skillstore},
year = {2026},
number = {1},
url = {https://skillstore.io/skills/shreyam1008-service-worker/audits/1},
note = {Author version unspecified}
}CITATION.cff
cff-version: 1.2.0
message: "If you use this Skill, cite its author and this versioned security audit report."
title: "service-worker security audit report (audit version 1)"
version: "unspecified"
type: report
authors:
- name: "shreyam1008"
date-released: "2026-10-02"
url: "https://skillstore.io/skills/shreyam1008-service-worker/audits/1"
identifiers:
- type: other
value: "skillstore:shreyam1008-service-worker:audit:1"
description: "Skillstore immutable audit report identifier"
Puntuación de Skillstore
Por qué esta puntuación Confianza de la evidencia: MedioLo que puedes crear
Add an offline navigation fallback
Introduce worker registration, a precached offline page, and network-first navigation behavior for a web application.
Plan controlled PWA updates
Define cache ownership, version changes, and user-visible refresh prompts for reliable releases.
Review offline and browser behavior
Check slow-network behavior, cache isolation, update readiness, and installation fallbacks across supported browsers.
Prueba estos prompts
Explain registration, installation, activation, and waiting states for my first service worker. Describe when skipWaiting and clients.claim are appropriate.
Add a service worker to my application with app-prefixed versioned caches and a precached offline page. Preserve other applications' caches.
Review my worker for stale HTML, private-data caching, cache ownership, and update handling. Recommend content-specific strategies and a user-visible update flow.
Design Workbox routing and background retries for my PWA. Include idempotency keys, bounded retries, account isolation, logout cleanup, and unsupported-browser fallbacks.
Mejores prácticas
- Namespace and version caches, then delete only obsolete caches owned by your application.
- Exclude private responses unless offline storage includes account partitioning and logout cleanup.
- Test offline navigation, slow networks, and user-visible updates in supported browsers.
Evitar
- Delete every cache on the origin during worker activation.
- Cache mutation responses or private data without explicit safeguards.
- Serve stale HTML indefinitely or activate updates without considering existing sessions.
Preguntas frecuentes
Which AI tools can use this skill?
Does this skill include a complete PWA?
Should I use Workbox?
Does Cache Storage respect no-store automatically?
Does Background Sync work in every browser?
Is a service worker always required for PWA installation?
Detalles del desarrollador
Autor
shreyam1008Licencia
MIT
Revisión de Skillstore
r1
Aviso de versión
El autor no declaró una versión.
Ref.
bbec03cf10354f3aaccd6dd24eda4ac9ceeceac5
Actualidad del mantenimiento
2/10/2026
Uso
0 descargas · 0 vistas
Estructura de archivos
📄 SKILL.md