fix(todo-web): remove localhost fallbacks triggering local network permission

- Remove localhost:3018 pattern from service worker cache strategies
- Update auth store to only use localhost fallback in development mode
- Bump service worker cache version to v3 to force update

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
Till-JS 2026-01-28 15:33:36 +01:00
parent 4fa8608744
commit 3389252d3a
2 changed files with 14 additions and 7 deletions

View file

@ -1,4 +1,4 @@
const CACHE_NAME = 'todo-v2';
const CACHE_NAME = 'todo-v3';
const OFFLINE_URL = '/offline.html';
// Assets, die immer gecacht werden sollen
@ -17,7 +17,7 @@ const CACHE_STRATEGIES = {
/\.ico$/,
],
// Nur Netzwerk (für API-Calls und Dev-Server)
networkOnly: [/\/api\//, /localhost:3018/, /^\/src\//, /^\/@/, /^\/node_modules\//],
networkOnly: [/\/api\//, /^\/src\//, /^\/@/, /^\/node_modules\//],
};
// Service Worker Installation