Stop storing media in shared caches

Cache-Control=public leads to everyone being able to GET media from some shared cache (e.g. Cloudflare's)
This commit is contained in:
Vladislav Grechannik
2026-01-30 18:48:47 +01:00
parent 90d4bda70b
commit c76a66be28

View File

@@ -40,7 +40,7 @@ pub struct Service {
pub const MXC_LENGTH: usize = 32; pub const MXC_LENGTH: usize = 32;
/// Cache control for immutable objects. /// Cache control for immutable objects.
pub const CACHE_CONTROL_IMMUTABLE: &str = "public,max-age=31536000,immutable"; pub const CACHE_CONTROL_IMMUTABLE: &str = "private,max-age=31536000,immutable";
/// Default cross-origin resource policy. /// Default cross-origin resource policy.
pub const CORP_CROSS_ORIGIN: &str = "cross-origin"; pub const CORP_CROSS_ORIGIN: &str = "cross-origin";