From 1d3638649bd4bd093f3c37f5c4a9cb0c07642a49 Mon Sep 17 00:00:00 2001 From: Accusys Date: Fri, 7 Aug 2026 19:28:50 +0800 Subject: [PATCH] fix: trace-thumbnail cache-control changed to no-cache for testing - Changed from 'public, max-age=86400' to 'no-cache' - Allows immediate verification of rebuilt key_face.jpg files - Can be changed back to max-age=300 after verification --- src/api/media_api.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/api/media_api.rs b/src/api/media_api.rs index 3cfdc090..5a1c4a51 100644 --- a/src/api/media_api.rs +++ b/src/api/media_api.rs @@ -932,7 +932,7 @@ async fn trace_thumbnail( Ok(Response::builder() .status(StatusCode::OK) .header(header::CONTENT_TYPE, "image/jpeg") - .header(header::CACHE_CONTROL, "public, max-age=86400") + .header(header::CACHE_CONTROL, "no-cache") .body(Body::from(bytes)) .unwrap()) }