diff --git a/src/web.rs b/src/web.rs index a110c0f..2ae613c 100644 --- a/src/web.rs +++ b/src/web.rs @@ -97,5 +97,8 @@ fn handle_tar(req: &HttpRequest) -> impl Responder { } fn favicon_ico(_req: &HttpRequest) -> impl Responder { - bytes::Bytes::from_static(include_bytes!("favicon.png")) + HttpResponse::Ok() + .content_type("image/png") + .header("Cache-Control", "only-if-cached, max-age=86400") + .body(bytes::Bytes::from_static(include_bytes!("favicon.png"))) }