Fix permanent: JS/CSS nie immutable cachen — verhindert Update-Loop (SW by-v890)
Browser-HTTP-Cache mit immutable lässt sich nach force-update nicht leeren. Veraltete app.js (APP_VER alt) führt zu X-App-Version Mismatch → Dauerschleife. SW übernimmt Caching sowieso → no-cache für alle JS/CSS ist sicher.
This commit is contained in:
parent
437901b8e2
commit
a5b8174566
4 changed files with 11 additions and 13 deletions
|
|
@ -583,10 +583,10 @@
|
|||
<div id="modal-container"></div>
|
||||
|
||||
<!-- JS: Reihenfolge ist wichtig — erst Basis, dann Features -->
|
||||
<script src="/js/api.js?v=888"></script>
|
||||
<script src="/js/ui.js?v=888"></script>
|
||||
<script src="/js/app.js?v=888"></script>
|
||||
<script src="/js/worlds.js?v=888"></script>
|
||||
<script src="/js/api.js?v=890"></script>
|
||||
<script src="/js/ui.js?v=890"></script>
|
||||
<script src="/js/app.js?v=890"></script>
|
||||
<script src="/js/worlds.js?v=890"></script>
|
||||
|
||||
<!-- Feature-Seiten werden lazy geladen -->
|
||||
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@
|
|||
Router, State-Management, Navigation, Initialisierung.
|
||||
============================================================ */
|
||||
|
||||
const APP_VER = '889'; // ← bei jedem Deploy mit Frontend-Änderungen erhöhen
|
||||
const APP_VER = '890'; // ← bei jedem Deploy mit Frontend-Änderungen erhöhen
|
||||
const APP_VERSION = '1.5.1'; // ← semantische Version, wird bei make release gesetzt
|
||||
const IS_STAGING = location.hostname === 'staging.banyaro.app';
|
||||
// Cache-Bust-Parameter nach Update-Reload sofort entfernen
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@
|
|||
Offline-Cache + Push Notifications + Tile-Cache
|
||||
============================================================ */
|
||||
|
||||
const CACHE_VERSION = 'by-v889';
|
||||
const CACHE_VERSION = 'by-v890';
|
||||
const CACHE_STATIC = `${CACHE_VERSION}-static`;
|
||||
const CACHE_TILES = 'ban-yaro-tiles-v1'; // bleibt über SW-Updates erhalten
|
||||
const CACHE_API = 'ban-yaro-api-v1'; // API-Response-Cache
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue