add predered routes to cache
All checks were successful
ci/woodpecker/push/build Pipeline was successful

This commit is contained in:
Alessio Davoli 2023-07-22 17:23:20 +02:00
parent 5540593879
commit 305f07f790

View file

@ -3,14 +3,15 @@
/// <reference lib="esnext" />
/// <reference lib="webworker" />
import { build, files, version } from '$service-worker';
import { build, files, version, prerendered } from '$service-worker';
// Create a unique cache name for this deployment
const CACHE = `sw-cache-${version}`;
const ASSETS = [
...build, // the app itself
...files // everything in `static`
...files, // everything in `static`,
...prerendered // dynamic routes
];
self.addEventListener('install', (event) => {