feat:#5 added first offline calendar functions

This commit is contained in:
Elmar Kresse
2024-08-13 19:16:07 +02:00
parent b00528dfc1
commit b848d26704
9 changed files with 134 additions and 53 deletions

View File

@@ -96,6 +96,18 @@ export default defineConfig({
},
},
},
{
// Add the runtime caching strategy for /api/modules
urlPattern: ({url}) => url.pathname.startsWith('/api/modules'),
method: 'GET',
handler: 'NetworkFirst',
options: {
cacheName: 'modules-cache',
expiration: {
maxAgeSeconds: 24 * 60 * 60, // 1 day
},
},
},
{
urlPattern: /^https?.*/,
handler: "NetworkFirst",