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:
Matteo Scaramuccia 2014-11-09 08:06:46 +01:00
parent c106341098
commit bb8ed60a3c
4 changed files with 37 additions and 9 deletions

View file

@ -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();