diff options
| author | Ariel Costas Guerrero <ariel@costas.dev> | 2025-04-20 19:07:29 +0200 |
|---|---|---|
| committer | Ariel Costas Guerrero <ariel@costas.dev> | 2025-04-20 19:07:29 +0200 |
| commit | 340865ad234f974ec4c0afcbfb6ff06f50a11b2f (patch) | |
| tree | 06b6a76b6dfc535f9091990eaaec82b50d5f851e /public/sw.js | |
| parent | 32bc4914759845516de2b7592b05afb3c3cc5c42 (diff) | |
Load stops from local data files
Diffstat (limited to 'public/sw.js')
| -rw-r--r-- | public/sw.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/public/sw.js b/public/sw.js index 1aa9747..70ca169 100644 --- a/public/sw.js +++ b/public/sw.js @@ -1,6 +1,6 @@ const API_CACHE_NAME = 'api-cache-v1' const API_URL_PATTERN = /\/api\/(GetStopList)/; -const API_MAX_AGE = 72 * 60 * 60 * 1000; // 72 hours +const API_MAX_AGE = 24 * 60 * 60 * 1000; // 24 hours self.addEventListener('install', (event) => { event.waitUntil(self.skipWaiting()); |
