mirror of
https://seed.radicle.dev/rad:z4V1sjrXqjvFdnCUbxPFqd5p4DtH5.git
synced 2026-11-15 19:30:38 +08:00
httpd: Set cache header for immutable blob endpoint
It is safe to do so because it is content-addressed.
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user