-
Notifications
You must be signed in to change notification settings - Fork 0
Home
double-meh-sw is the service-worker sibling of double-meh: one worker owning what only a service worker can — a shared cache tier served to every tab, cross-tab request coalescing, transparent request bundling for pages without the library, an invalidation hub, a version-upgrade flow, and the io:fetch message transport whose requests survive page navigation.
// sw.js — bundle this, serve the output from your origin, register it with {type: 'module'}
import {install} from 'double-meh-sw/sw.js';
install({
version: '2026.07.04',
cache: {cacheName: 'app-shared'},
bundler: {url: '/bundle', match: '/api/'}
});Everything degrades to plain fetches by design — the worker is a performance adornment, never a semantic layer. Pages running double-meh keep ownership of their own bundling (io:hello client-wins); pages without it get zero-integration acceleration.
🔍 Search this wiki — ranked, deep-linked search via wiki-search; install the bookmarklet to search in place. Fallback: GitHub wiki search.
Deploying
-
The assembly —
install(options), serve order, respondWith gating, degradation rules
Modules
- Cache tier — the shared Cache API tier: serve-first, invalidation
- Coalescing — cross-tab in-flight dedup
- Bundle window — transparent micro-window bundling
-
Messages — the
io:*contract, client-wins, theio:fetchtransport
Protocol
- The bundle wire format v1 lives in the double-meh-bundler wiki — one normative page for all three packages
Project
Start
Modules
Project