mirror of
https://github.com/Memo-2023/mana-monorepo.git
synced 2026-05-22 23:26:43 +02:00
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:
parent
4fa8608744
commit
3389252d3a
2 changed files with 14 additions and 7 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue