Fix: Offline-Score Cache-Detection robust, SW by-v1084
Bug: APP_VER war in app.js nur lokale const, nicht window.APP_VER → offline-indicator.js öffnete Cache 'by-v0-static' statt 'by-v1083-static' → fast alle Stufen blieben grau. Fixes: - app.js: window.APP_VER + window.APP_VERSION explizit setzen - offline-indicator.js: _staticCache() Helper findet den aktuellen Static-Cache per Regex /^by-v\d+-static$/ — versions-unabhängig - Step 1 (App-Shell) prüft jetzt korrekt auf design-system.css UND app.js im Static-Cache, nicht mehr caches.match() mit URL
This commit is contained in:
parent
b9fe5b5bc3
commit
95dccd03be
5 changed files with 30 additions and 19 deletions
|
|
@ -101,9 +101,9 @@
|
|||
</script>
|
||||
|
||||
<!-- CSS: Reihenfolge ist wichtig — ?v= zwingt Browser zur Neuladung -->
|
||||
<link rel="stylesheet" href="/css/design-system.css?v=1083">
|
||||
<link rel="stylesheet" href="/css/layout.css?v=1083">
|
||||
<link rel="stylesheet" href="/css/components.css?v=1083">
|
||||
<link rel="stylesheet" href="/css/design-system.css?v=1084">
|
||||
<link rel="stylesheet" href="/css/layout.css?v=1084">
|
||||
<link rel="stylesheet" href="/css/components.css?v=1084">
|
||||
</head>
|
||||
<body>
|
||||
|
||||
|
|
@ -625,11 +625,11 @@
|
|||
<div id="modal-container"></div>
|
||||
|
||||
<!-- JS: Reihenfolge ist wichtig — erst Basis, dann Features -->
|
||||
<script src="/js/api.js?v=1083"></script>
|
||||
<script src="/js/ui.js?v=1083"></script>
|
||||
<script src="/js/app.js?v=1083"></script>
|
||||
<script src="/js/worlds.js?v=1083"></script>
|
||||
<script src="/js/offline-indicator.js?v=1083"></script>
|
||||
<script src="/js/api.js?v=1084"></script>
|
||||
<script src="/js/ui.js?v=1084"></script>
|
||||
<script src="/js/app.js?v=1084"></script>
|
||||
<script src="/js/worlds.js?v=1084"></script>
|
||||
<script src="/js/offline-indicator.js?v=1084"></script>
|
||||
|
||||
<!-- Feature-Seiten werden lazy geladen -->
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue