Disable WebUI caching
Rust / Clippy, Rustfmt, Tests (push) Has been cancelled
Rust / Linux-x64 build (push) Has been cancelled
Rust / GitHub release (push) Has been cancelled

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() (status, body).into_response()
} }
async fn index() -> Html<&'static str> { async fn index() -> Response {
Html(INDEX_HTML) (
[
(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> { async fn healthz(State(state): State<Arc<AppState>>) -> Json<Value> {