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:
@@ -40,7 +40,7 @@ pub struct Service {
|
||||
pub const MXC_LENGTH: usize = 32;
|
||||
|
||||
/// 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.
|
||||
pub const CORP_CROSS_ORIGIN: &str = "cross-origin";
|
||||
|
||||
Reference in New Issue
Block a user