Radish alpha
r
Radicle web interface
Radicle
Git (anonymous pull)
Log in to clone via SSH
httpd: Set cache header for immutable blob endpoint
Rūdolfs Ošiņš committed 2 years ago
commit 7e6e00e82bb66640441b4a91880cd09e0811eee8
parent a1e486b8cdb86949792b701f54f62094056e7794
1 file changed +1 -1
modified radicle-httpd/src/api/v1/projects.rs
@@ -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.