Fix: CSS-Version ?v=500→540 — immutable-Cache erzwingt Browser-Reload, SW by-v541, APP_VER 518

This commit is contained in:
rene 2026-04-30 10:38:11 +02:00
parent c0a1b2e922
commit a37a944998
3 changed files with 8 additions and 8 deletions

View file

@ -88,9 +88,9 @@
</script>
<!-- CSS: Reihenfolge ist wichtig — ?v= zwingt Browser zur Neuladung -->
<link rel="stylesheet" href="/css/design-system.css?v=500">
<link rel="stylesheet" href="/css/layout.css?v=500">
<link rel="stylesheet" href="/css/components.css?v=500">
<link rel="stylesheet" href="/css/design-system.css?v=540">
<link rel="stylesheet" href="/css/layout.css?v=540">
<link rel="stylesheet" href="/css/components.css?v=540">
</head>
<body>

View file

@ -3,7 +3,7 @@
Router, State-Management, Navigation, Initialisierung.
============================================================ */
const APP_VER = '517'; // ← bei jedem Deploy mit Frontend-Änderungen erhöhen
const APP_VER = '518'; // ← bei jedem Deploy mit Frontend-Änderungen erhöhen
const APP_VERSION = '1.0.0'; // ← semantische Version, wird bei make release gesetzt
const IS_STAGING = location.hostname === 'staging.banyaro.app';

View file

@ -3,16 +3,16 @@
Offline-Cache + Push Notifications + Tile-Cache
============================================================ */
const CACHE_VERSION = 'by-v540';
const CACHE_VERSION = 'by-v541';
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
// index.html wird NICHT pre-gecacht (immer Network-First)
const STATIC_ASSETS = [
'/css/design-system.css?v=500',
'/css/layout.css?v=500',
'/css/components.css?v=500',
'/css/design-system.css?v=540',
'/css/layout.css?v=540',
'/css/components.css?v=540',
'/icons/phosphor.svg',
'/js/api.js',
'/js/ui.js',