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-14 11:46:13 +02:00 committed by cloudhead
parent b195a3eb35
commit 3b342ab385
No known key found for this signature in database
1 changed files with 1 additions and 1 deletions

View File

@ -539,7 +539,7 @@ async fn blob_handler(
let blob = repo.blob(sha, &path)?; let blob = repo.blob(sha, &path)?;
let response = api::json::blob(&blob, &path); let response = api::json::blob(&blob, &path);
Ok::<_, Error>(Json(response)) Ok::<_, Error>(immutable_response(response))
} }
/// Get project readme. /// Get project readme.