Integration Guides
Walk through Swoff features step by step.
Step-by-step guides for Swoff features — start with what you need, skip what you don't.
SW Infrastructure
Works automatically for all frameworks — no imports needed.
Service Worker
SW lifecycle, versioning, auto-activation, navigation preload.
Caching Strategy
6 strategies, patterns, reactive, timeout, eviction.
Navigation Caching
SPA/SSR navigation, preload, fallback, precache routes.
Precaching
Background activation, checkpoint resume, progress, reset.
Client Data Layer
Client-side data fetching for SPA and full-stack frameworks.
Data Fetching & Caching
fetchWithCache, stale-while-revalidate, prefetch.
GraphQL
Body-hash caching, operation-name auto-tags.
Browser-Native Features
Run in the browser after rendering; consistent across all frameworks.
Tag Invalidation
Auto-tags, glob patterns, cascading, cross-tab invalidation.
Connectivity
Online/offline detection, HEAD heartbeat, forceRetry.
Auth
Auth headers, 401 detection, token refresh, protected routes.
Auth Libraries
20+ auth libraries: cookie vs bearer vs custom, getHeaders() setup.
Offline Mutations
Queue writes offline, replay online, background-sync.
Push Notifications
Subscribe, notify, unsubscribe.
Server Push
SSE/WS from SW, live tag invalidation across all tabs.
PWA Foundation
Install prompt, manifest, icons, storage estimate.
New to Swoff? Start with guides 1–3 — no imports needed, works through config only.