mirror of
https://gitlab.dit.htwk-leipzig.de/htwk-software/htwkalender-pwa.git
synced 2025-08-09 21:27:47 +02:00
feat:#5 added first offline calendar functions
This commit is contained in:
@@ -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",
|
||||
|
Reference in New Issue
Block a user