Skip to content

Commit

Permalink
Add public to /content Cache-Control headers (#2773)
Browse files Browse the repository at this point in the history
  • Loading branch information
casey authored Nov 30, 2023
1 parent 06751f0 commit d074084
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/subcommand/server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1072,7 +1072,7 @@ impl Server {

headers.insert(
header::CACHE_CONTROL,
HeaderValue::from_static("max-age=31536000, immutable"),
HeaderValue::from_static("public, max-age=31536000, immutable"),
);

let Some(body) = inscription.into_body() else {
Expand Down Expand Up @@ -3679,7 +3679,7 @@ mod tests {
assert_eq!(response.status(), StatusCode::OK);
assert_eq!(
response.headers().get(header::CACHE_CONTROL).unwrap(),
"max-age=31536000, immutable"
"public, max-age=31536000, immutable"
);
}

Expand Down

0 comments on commit d074084

Please sign in to comment.