httpd: Mark immutable response as such with Cache-Control header
modified radicle-httpd/src/api/v1/projects.rs
@@ -28,7 +28,7 @@ use radicle_surf::{diff, Glob, Oid, Repository};
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -181,7 +181,7 @@ pub struct CommitsQueryString {
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -195,6 +195,11 @@ async fn history_handler(
|
|
|
|
|
|
| + | |
| + | |
| + | |
| + | |
| + | |
|
|
|
|
|
@@ -258,7 +263,11 @@ async fn history_handler(
|
|
|
|
|
|
| - | |
| + | |
| + | |
| + | |
| + | |
| + | |
|
|
|
|
|
@@ -318,13 +327,13 @@ async fn commit_handler(
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -391,7 +400,7 @@ async fn diff_handler(
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -439,7 +448,7 @@ async fn tree_handler(
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -454,7 +463,7 @@ async fn tree_handler(
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -566,7 +575,7 @@ async fn readme_handler(
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
modified radicle-httpd/src/axum_extra.rs
@@ -2,7 +2,8 @@ use axum::extract::path::ErrorKind;
|
|
|
|
|
|
| - | |
| + | |
| + | |
|
|
|
|
|
@@ -87,3 +88,12 @@ pub struct Error {
|
|
|
|
|
|
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |