Background: public/fallback-PPkJ6igsxJlxKyK41-Vd3.js suggests a service worker is partially configured. Static assets (fonts, icons, wallet SVGs) should be cached for offline support.
What "done" looks like:
- Service worker caches static assets on install using a cache-first strategy
app/offline/page.tsx is served from cache when the user is offline
- Cache is versioned — new deploys invalidate old caches
Key files: public/, app/offline/page.tsx, next.config.js
Constraints:
- Do not cache API responses or contract calls in the service worker
- Must work alongside Next.js's default caching — do not conflict
PR must include: Service worker config + offline test + cache version strategy explanation.
Background:
public/fallback-PPkJ6igsxJlxKyK41-Vd3.jssuggests a service worker is partially configured. Static assets (fonts, icons, wallet SVGs) should be cached for offline support.What "done" looks like:
app/offline/page.tsxis served from cache when the user is offlineKey files:
public/,app/offline/page.tsx,next.config.jsConstraints:
PR must include: Service worker config + offline test + cache version strategy explanation.