mirror of
https://github.com/fluxerapp/fluxer
synced 2026-10-17 04:55:42 +09:00
fix(common): stop advertising static assets as immutable (#1836)
This commit is contained in:
1 parent
8cfac127f5
commit
208632e648
4 files changed
+31
-21
No files matched your search
@@ -515,6 +515,14 @@ mod tests {
|
||||
assert!(plan[0].repair_existing_metadata);
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn uploaded_assets_carry_the_same_policy_the_app_proxy_serves() {
|
||||
assert_eq!(
|
||||
IMMUTABLE_ASSET_CACHE_CONTROL,
|
||||
"public, max-age=31536000, immutable"
|
||||
);
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn asset_upload_plan_rejects_manifest_entries_missing_on_disk() {
|
||||
let temp = tempfile::tempdir().unwrap();
|
||||
|
||||
Reference in new issue
Block a user