From 340865ad234f974ec4c0afcbfb6ff06f50a11b2f Mon Sep 17 00:00:00 2001 From: Ariel Costas Guerrero Date: Sun, 20 Apr 2025 19:07:29 +0200 Subject: Load stops from local data files --- public/sw.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'public/sw.js') 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()); -- cgit v1.3