Skip to main content

add_cache_control

Function add_cache_control 

Source
pub(crate) async fn add_cache_control(req: Request, next: Next) -> Response
Expand description

Axum 中间件:为公开页面和静态资源附加 Cache-Control 头。