feat: render fixed-width text for nex

This commit is contained in:
randogoth 2026-10-04 20:27:29 +03:00
parent 2f38b8b929
commit 9e1cfed284
19 changed files with 1160 additions and 44 deletions

View file

@ -129,7 +129,7 @@ pub fn serve(listener: &Listener, mut stream: TcpStream) -> Result<()> {
head_only,
);
};
let cache = page.settings.cache_control.map(|age| format!("max-age={age}"));
let cache = page.settings.max_age.map(|age| format!("max-age={age}"));
let mut headers: Vec<(&str, &str)> = Vec::new();
// The response body depends on Accept, so a shared cache must not
// serve one client's format to another.