- **feat(OnlineNennungFormular):** Zeige eindeutige Versionsnummer zur besseren Nachverfolgbarkeit an.
All checks were successful
Build and Publish Docker Images / build-and-push (., backend/services/mail/Dockerfile, mail-service, mail-service) (push) Successful in 6m11s
Build and Publish Docker Images / build-and-push (., config/docker/caddy/web-app/Dockerfile, web-app, web-app) (push) Successful in 4m17s

- **chore(Caddyfile):** Passe Caching-Strategie für `.wasm` und `.js` zur Vermeidung von Ladeproblemen während der Entwicklung an.
This commit is contained in:
Stefan Mogeritsch 2026-04-23 06:14:36 +02:00
parent 84d38f5eb5
commit 07bd114df1
2 changed files with 17 additions and 2 deletions

View File

@ -32,12 +32,21 @@
}
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 {
path *.js *.css *.wasm *.png *.svg *.ico *.woff2 *.map
path *.png *.svg *.ico *.woff2 *.map
}
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
@nocache {
path /index.html /config.json

View File

@ -221,6 +221,12 @@ fun OnlineNennungFormular(
color = AppColors.Primary.copy(alpha = 0.6f),
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(