new finctions and fixes
This commit is contained in:
+4
-3
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user