|
|
@ -123,7 +123,7 @@ self.addEventListener('fetch', (event) => { |
|
|
|
cacheFirst({ |
|
|
|
cacheFirst({ |
|
|
|
request: event.request, |
|
|
|
request: event.request, |
|
|
|
preloadResponsePromise: event.preloadResponse, |
|
|
|
preloadResponsePromise: event.preloadResponse, |
|
|
|
refreshAnyway: [API_STATIONS, API_TRAINS].includes(event.request.url), |
|
|
|
refreshAnyway: [API_STATIONS, API_TRAINS].includes(event.request.url.split('?')[0]), |
|
|
|
}) |
|
|
|
}) |
|
|
|
) |
|
|
|
) |
|
|
|
}) |
|
|
|
}) |
|
|
|