summaryrefslogtreecommitdiff
path: root/apps/web/app/sw.ts
Commit message (Collapse)AuthorAgeFilesLines
* feat: gate offline reading to pro and developer plansFuwn2026-02-101-0/+16
| | | | | | | Service worker now only caches Supabase REST responses when the user's tier allows offline reading. Client syncs tier status to SW via postMessage after profile loads. Free users see a descriptive offline banner instead of stale cached data.
* fix: service worker cross-origin image handling and CI env varsFuwn2026-02-101-1/+2
| | | | | | Stop SW from intercepting cross-origin image requests (favicons, remote entry images) which caused no-response errors in production. Add Supabase env vars to CI build step.
* feat: offline support tier 3 — mutation queue and image cachingFuwn2026-02-091-1/+13
| | | | | | | Paused mutations (read/save toggles) are now persisted to IndexedDB and automatically resumed on reconnection or page reload via TanStack Query's offlineFirst networkMode. Service worker caches images with CacheFirst strategy (500 entries, 7-day expiry) for offline reading.
* feat: offline support tier 2 — prefetch entry content and SW runtime cachingFuwn2026-02-091-2/+20
| | | | | | | Prefetch content_html for the first 10 timeline entries in the background so they are available offline without needing to click each one. Add NetworkFirst runtime caching in service worker for Supabase REST GET requests (24h expiry, 200 entry limit).
* fix: enforce same-origin on all service worker cache routesFuwn2026-02-071-8/+13
| | | | | | Wraps every defaultCache matcher to check sameOrigin first, preventing the SW from intercepting cross-origin requests (Google favicons, external images, fonts) which caused no-response errors on redirects.
* fix: service worker passes cross-origin requests through to networkFuwn2026-02-071-2/+8
| | | | | | Prevents no-response errors on redirected cross-origin fetches like Google favicon service by prepending a NetworkOnly rule for all non-same-origin requests.
* feat: asa.news RSS reader with developer tier, REST API, and webhooksFuwn2026-02-071-0/+22
Full-stack RSS reader SaaS: Supabase + Next.js + Go worker. Includes three subscription tiers (free/pro/developer), API key auth, read-only REST API, webhook push notifications, Stripe billing with proration, and PWA support.