pub(crate) fn cache_control_for_path(
path: &str,
query: Option<&str>,
method: &Method,
entry_content_addressed: bool,
) -> Option<HeaderValue>Expand description
根据请求路径、查询串和方法决定公开页面的 Cache-Control 头。 返回 None 表示不添加缓存头(保留现有行为或避免覆盖)。
entry_content_addressed:hash.txt 是否带 entry: content-addressed(见
scripts/build-release.ts 的 contentAddressEntries),决定入口文件能否 immutable。