new finctions and fixes

This commit is contained in:
Mateusz Gruszczyński committed 2026-07-30 00:12:48 +02:00
1 parent 9ca055de5f
commit 2274cf57c9
31 files changed
+1348 -505

No files matched your search

+4 -3
View File
@@ -46,9 +46,10 @@ pub fn router(
}
});
let asset_cache_control =
HeaderValue::from_str(&format!("public, max-age={asset_cache_max_age_seconds}"))
.expect("valid asset cache-control header");
let asset_cache_control = HeaderValue::from_str(&crate::cache::cache_control(
asset_cache_max_age_seconds,
))
.expect("valid asset cache-control header");
Router::new()
.route("/", get(home))