MDL-48023 Files API: Theme files must be cache-able by shared proxies.
The profile image AKA user icon will be cache-able by shared proxies too, under its specific accessibility constraints/conditions.
This commit is contained in:
committed by
Matteo Scaramuccia
parent
296b602f2c
commit
b73158d3d0
@@ -1475,6 +1475,10 @@ class theme_config {
|
||||
$lifetime = 0;
|
||||
} else {
|
||||
$lifetime = 60*60*24*60;
|
||||
// By default, theme files must be cache-able by both browsers and proxies.
|
||||
if (!array_key_exists('cacheability', $options)) {
|
||||
$options['cacheability'] = 'public';
|
||||
}
|
||||
}
|
||||
|
||||
$fs = get_file_storage();
|
||||
|
||||
Reference in New Issue
Block a user