Skip to content

feat: implement PWA offline caching strategy (#20) - #36

Merged
elizabetheonoja-art merged 1 commit into
Utility-Protocol:mainfrom
oche11207-art:feat/issue-20-pwa-offline-caching
Jun 19, 2026
Merged

feat: implement PWA offline caching strategy (#20)#36
elizabetheonoja-art merged 1 commit into
Utility-Protocol:mainfrom
oche11207-art:feat/issue-20-pwa-offline-caching

Conversation

@oche11207-art

Copy link
Copy Markdown
Contributor

Implements Issue #20: Progressive Web App Offline Asset-Service Caching Strategy. Adds service worker with utility-v1 cache, ServiceWorkerProvider client component, PWA icons, and 6 unit tests. All CI gates pass: typecheck, lint, 38 tests, and build.

- Create service worker (public/sw.js) with utility-v1 cache
  - Cache-first strategy for static assets (stale-while-revalidate)
  - Network-first strategy for API calls with cache fallback
  - Network-first navigation with offline HTML fallback
  - Pre-cache app shell assets on install
- Create ServiceWorkerProvider client component for SW registration
- Update layout.tsx to include ServiceWorkerProvider
- Generate placeholder PWA icons (192x192 and 512x512)
- Add unit tests for ServiceWorkerProvider (6 tests)
- Add icon generation script

Closes Utility-Protocol#20

@elizabetheonoja-art elizabetheonoja-art left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@elizabetheonoja-art
elizabetheonoja-art merged commit 5853f30 into Utility-Protocol:main Jun 19, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants