Disable WebUI caching
Rust / Clippy, Rustfmt, Tests (push) Waiting to run
Rust / Linux-x64 build (push) Blocked by required conditions
Rust / GitHub release (push) Blocked by required conditions

This commit is contained in:
2026-06-09 23:55:59 +02:00
parent 6aad1f4417
commit fda0a3c70d
+10 -2
View File
@@ -335,8 +335,16 @@ fn error_response(status: StatusCode, message: impl Into<String>) -> Response {
(status, body).into_response()
}
async fn index() -> Html<&'static str> {
Html(INDEX_HTML)
async fn index() -> Response {
(
[
(header::CACHE_CONTROL, "no-store, no-cache, must-revalidate, max-age=0"),
(header::PRAGMA, "no-cache"),
(header::EXPIRES, "0"),
],
Html(INDEX_HTML),
)
.into_response()
}
async fn healthz(State(state): State<Arc<AppState>>) -> Json<Value> {