From 305f07f7907caec20c8de7d51cc1b5affd32b83a Mon Sep 17 00:00:00 2001 From: Alessio Davoli Date: Sat, 22 Jul 2023 17:23:20 +0200 Subject: [PATCH] add predered routes to cache --- frontend/src/sw.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/frontend/src/sw.ts b/frontend/src/sw.ts index cb56c71..7f2965c 100644 --- a/frontend/src/sw.ts +++ b/frontend/src/sw.ts @@ -3,14 +3,15 @@ /// /// -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) => {