Skip to content

Instantly share code, notes, and snippets.

View Addeuz's full-sized avatar

Andreas Johansson Addeuz

  • Linköping, Sweden
View GitHub Profile
/// <reference types="@sveltejs/kit" />
/// <reference no-default-lib="true"/>
/// <reference lib="esnext" />
/// <reference lib="webworker" />
import { build, files, version } from '$service-worker';
const sw = self as unknown as ServiceWorkerGlobalScope;
// Create a unique cache name for this deployment
const CACHE = `cache-${version}`;