- **feat(OnlineNennungFormular):** Zeige eindeutige Versionsnummer zur besseren Nachverfolgbarkeit an.
All checks were successful
All checks were successful
- **chore(Caddyfile):** Passe Caching-Strategie für `.wasm` und `.js` zur Vermeidung von Ladeproblemen während der Entwicklung an.
This commit is contained in:
parent
84d38f5eb5
commit
07bd114df1
|
|
@ -32,12 +32,21 @@
|
||||||
}
|
}
|
||||||
header @wasm Content-Type "application/wasm"
|
header @wasm Content-Type "application/wasm"
|
||||||
|
|
||||||
# Caching-Strategie: Immutable Assets (hash-Dateien) lange cachen
|
# Caching-Strategie: Immutable Assets (hash-Dateien)
|
||||||
|
# WICHTIG: .wasm und .js werden hier gecached. Falls die Dateinamen gleich bleiben,
|
||||||
|
# wird der Browser sie NICHT neu laden.
|
||||||
@immutable {
|
@immutable {
|
||||||
path *.js *.css *.wasm *.png *.svg *.ico *.woff2 *.map
|
path *.png *.svg *.ico *.woff2 *.map
|
||||||
}
|
}
|
||||||
header @immutable Cache-Control "public, max-age=31536000, immutable"
|
header @immutable Cache-Control "public, max-age=31536000, immutable"
|
||||||
|
|
||||||
|
# Wasm und JS Dateien: Kein Cache während der aktiven Entwicklungsphase (Plan-B)
|
||||||
|
# um "Alte Seite" Probleme zu vermeiden.
|
||||||
|
@wasm_js {
|
||||||
|
path *.wasm *.js
|
||||||
|
}
|
||||||
|
header @wasm_js Cache-Control "no-store, no-cache, must-revalidate"
|
||||||
|
|
||||||
# Keine Cache-Header für SPA-Einstieg und Laufzeitkonfig
|
# Keine Cache-Header für SPA-Einstieg und Laufzeitkonfig
|
||||||
@nocache {
|
@nocache {
|
||||||
path /index.html /config.json
|
path /index.html /config.json
|
||||||
|
|
|
||||||
|
|
@ -221,6 +221,12 @@ fun OnlineNennungFormular(
|
||||||
color = AppColors.Primary.copy(alpha = 0.6f),
|
color = AppColors.Primary.copy(alpha = 0.6f),
|
||||||
modifier = Modifier.padding(bottom = 4.dp)
|
modifier = Modifier.padding(bottom = 4.dp)
|
||||||
)
|
)
|
||||||
|
Text(
|
||||||
|
text = "v2026-04-23.4", // Eindeutige Version für diesen Fix
|
||||||
|
style = MaterialTheme.typography.labelSmall,
|
||||||
|
color = Color.LightGray,
|
||||||
|
modifier = Modifier.padding(bottom = 4.dp)
|
||||||
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
Text(
|
Text(
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user