mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 00:46:50 +02:00
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:
parent
c106341098
commit
bb8ed60a3c
4 changed files with 37 additions and 9 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue