Skip to content

PWA does full app redownload on reload #19119

@masrurimz

Description

@masrurimz

Description

When using opencode web or accessing app.opencode.ai, the app does full redownloads on every page reload. On mobile, phone lock/unlock also triggers a complete redownload. This wastes mobile data and causes slow startup.

Root cause: PWA has a manifest and icons but is missing the service worker for caching assets.

Current state:

Component Status
site.webmanifest ✅ Exists with icons
PWA installable ✅ Works
Service worker Missing
Asset caching Broken

Steps to reproduce

  1. Run opencode web or visit app.opencode.ai
  2. Open browser DevTools → Network tab
  3. Reload the page
  4. Observe: All assets re-downloaded from network (no cache hits)

Expected: Assets should be cached and served from service worker on reload.

Operating System

  • macOS / Linux / Windows
  • Mobile (iOS Safari / Android Chrome)

Proposed Fix

Add vite-plugin-pwa to packages/app with runtime caching for hashed assets.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions