summaryrefslogtreecommitdiff
path: root/src/middleware/cache_control.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/middleware/cache_control.rs')
-rw-r--r--src/middleware/cache_control.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/middleware/cache_control.rs b/src/middleware/cache_control.rs
index 30f31ca..0f11924 100644
--- a/src/middleware/cache_control.rs
+++ b/src/middleware/cache_control.rs
@@ -3,7 +3,7 @@ use axum::http::header::{HeaderValue, CACHE_CONTROL};
use axum::middleware::Next;
use axum::response::Response;
-pub async fn cache_static(mut request: Request, next: Next) -> Response {
+pub async fn cache_static(request: Request, next: Next) -> Response {
let was_static = request.uri().path().starts_with("/assets");
let mut response = next.run(request).await;