diff --git a/crates/aster-webui/src/main.rs b/crates/aster-webui/src/main.rs index f57c051..f97ecc8 100644 --- a/crates/aster-webui/src/main.rs +++ b/crates/aster-webui/src/main.rs @@ -335,8 +335,16 @@ fn error_response(status: StatusCode, message: impl Into) -> 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>) -> Json {