Skip to content

Commit 941f8c7

Browse files
committed
NetworkFirst -> StaleWhileRevalidate
1 parent fae2544 commit 941f8c7

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

vitePwaOptions.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,9 @@ export const vitePWAconfig: Partial<VitePWAOptions> = {
2828
},
2929
{
3030
urlPattern: /^https:\/\/api(?:\.test)?\.profcomff\.com\/timetable\/.*/i,
31-
handler: 'NetworkFirst',
31+
handler: 'StaleWhileRevalidate',
3232
options: {
3333
cacheName: 'api-timetable',
34-
networkTimeoutSeconds: 3,
3534
expiration: {
3635
maxEntries: 30,
3736
maxAgeSeconds: 60 * 60 * 24 * 365,

0 commit comments

Comments
 (0)