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:
parent
90d4bda70b
commit
c76a66be28
1 changed files with 1 additions and 1 deletions
|
|
@ -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";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue