From 12ecc97b07093f3cac6567c70ff75d57b429c674 Mon Sep 17 00:00:00 2001 From: Ariel Costas Guerrero Date: Tue, 21 Oct 2025 17:38:01 +0200 Subject: Implement new Santiago region (WIP) --- src/frontend/public/pwa-worker.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/frontend/public/pwa-worker.js') diff --git a/src/frontend/public/pwa-worker.js b/src/frontend/public/pwa-worker.js index 9995828..6f5b9ef 100644 --- a/src/frontend/public/pwa-worker.js +++ b/src/frontend/public/pwa-worker.js @@ -4,10 +4,11 @@ const STATIC_CACHE_ASSETS = [ "/favicon.ico", "/logo-256.png", "/logo-512.jpg", - "/stops.json" + "/stops/vigo.json", + "/stops/santiago.json" ]; -const EXPR_CACHE_AFTER_FIRST_VIEW = /(\/assets\/.*)|(\/api\/GetStopTimetable.*)/; +const EXPR_CACHE_AFTER_FIRST_VIEW = /(\/assets\/.*)|(\/api\/(vigo|santiago)\/GetStopTimetable.*)/; const ESTIMATES_MIN_AGE = 15 * 1000; const ESTIMATES_MAX_AGE = 30 * 1000; -- cgit v1.3