httpd: Set cache header for immutable blob endpoint
It is safe to do so because it is content-addressed.
This commit is contained in:
parent
b195a3eb35
commit
3b342ab385
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Reference in New Issue