add predered routes to cache
All checks were successful
ci/woodpecker/push/build Pipeline was successful
All checks were successful
ci/woodpecker/push/build Pipeline was successful
This commit is contained in:
parent
5540593879
commit
305f07f790
1 changed files with 3 additions and 2 deletions
|
@ -3,14 +3,15 @@
|
||||||
/// <reference lib="esnext" />
|
/// <reference lib="esnext" />
|
||||||
/// <reference lib="webworker" />
|
/// <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
|
// Create a unique cache name for this deployment
|
||||||
const CACHE = `sw-cache-${version}`;
|
const CACHE = `sw-cache-${version}`;
|
||||||
|
|
||||||
const ASSETS = [
|
const ASSETS = [
|
||||||
...build, // the app itself
|
...build, // the app itself
|
||||||
...files // everything in `static`
|
...files, // everything in `static`,
|
||||||
|
...prerendered // dynamic routes
|
||||||
];
|
];
|
||||||
|
|
||||||
self.addEventListener('install', (event) => {
|
self.addEventListener('install', (event) => {
|
||||||
|
|
Loading…
Reference in a new issue