httpd: Set cache header for immutable blob endpoint

It is safe to do so because it is content-addressed.
This commit is contained in:
Rūdolfs Ošiņš
2024-05-15 12:28:30 +02:00
committed by cloudhead
parent a1e486b8cd
commit 7e6e00e82b
+1 -1
View File
@@ -539,7 +539,7 @@ async fn blob_handler(
let blob = repo.blob(sha, &path)?;
let response = api::json::blob(&blob, &path);
Ok::<_, Error>(Json(response))
Ok::<_, Error>(immutable_response(response))
}
/// Get project readme.