aboutsummaryrefslogtreecommitdiff
path: root/public/sw.js
diff options
context:
space:
mode:
authorAriel Costas Guerrero <ariel@costas.dev>2025-04-20 19:07:29 +0200
committerAriel Costas Guerrero <ariel@costas.dev>2025-04-20 19:07:29 +0200
commit340865ad234f974ec4c0afcbfb6ff06f50a11b2f (patch)
tree06b6a76b6dfc535f9091990eaaec82b50d5f851e /public/sw.js
parent32bc4914759845516de2b7592b05afb3c3cc5c42 (diff)
Load stops from local data files
Diffstat (limited to 'public/sw.js')
-rw-r--r--public/sw.js2
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());