Disable WebUI caching
This commit is contained in:
@@ -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> {
|
||||
|
||||
Reference in New Issue
Block a user