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-16 09:59:22 +01:00
committed by Matteo Scaramuccia
parent 296b602f2c
commit b73158d3d0
4 changed files with 37 additions and 9 deletions
+4
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();