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.
Mit meinem Agent installieren
Kopieren Sie diese Anfrage in Ihren Agent. Sie enthält die maßgebliche Skill-Seite und das Manifest.
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.Ihr Agent sollte weiterhin seinen Plan anzeigen und alle von der Sicherheitsrichtlinie verlangten Bestätigungen anfordern.
Agent-lesbare Ressourcen
Verwenden Sie diese Links, wenn ein KI-Agent, Crawler oder Skript sauberen Kontext benötigt, statt die vollständige Seite zu lesen.
Testen
„service-worker“ wird verwendet. Plan offline navigation for a small web application.
Erwartetes Ergebnis:
- 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.
„service-worker“ wird verwendet. Review a PWA that shows old pages after deployment.
Erwartetes Ergebnis:
- 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.
„service-worker“ wird verwendet. Plan background retries for failed writes.
Erwartetes Ergebnis:
- 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.
Sicherheitsaudit
SicherAll 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.
Risikofaktoren
⚙️ Externe Befehle (15)
🌐 Netzwerkzugriff (2)
Diesen Bericht teilen & zitieren
Teile den versionierten Bewertungsbericht, das neutrale Badge, die Einbettungskarte und Zitate. Skillstore berichtet Nachweise, ohne zu entscheiden, ob dieser Skill sicher ist.
Berichtslink kopieren
https://skillstore.io/skills/shreyam1008-service-worker/audits/1?utm_source=security_passport&utm_medium=share&utm_campaign=versioned_reportMarkdown-Badge
[](https://skillstore.io/skills/shreyam1008-service-worker?utm_source=security_passport_badge)HTML-Badge
<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>Einbettungskarte
<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>Wissenschaftliche Zitate (APA · BibTeX · CFF)
APA-Zitat
shreyam1008. (2026). service-worker security audit report (audit version 1) [Author version unspecified]. Skillstore. https://skillstore.io/skills/shreyam1008-service-worker/audits/1BibTeX-Zitat
@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"
Skillstore-Score
Warum dieser Score Evidenzvertrauen: MittelWas Sie erstellen können
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.
Diese Prompts ausprobieren
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.
Bewährte Praktiken
- 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.
Vermeiden
- 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.
Häufig gestellte Fragen
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?
Entwicklerdetails
Autor
shreyam1008Lizenz
MIT
Skillstore-Revision
r1
Versionshinweis
Der Autor hat keine Version angegeben.
Ref.
bbec03cf10354f3aaccd6dd24eda4ac9ceeceac5
Aktualität der Wartung
2.10.2026
Nutzung
0 Downloads · 0 Aufrufe
Dateistruktur
📄 SKILL.md