MDL-77797 filter_tex: Add public immutable caching headers

This commit is contained in:
Brendan Heywood 2023-03-30 22:32:31 +11:00
parent 09fd61415e
commit d0fe0bb391

View File

@ -66,7 +66,10 @@ define('NO_MOODLE_COOKIES', true); // Because it interferes with caching
}
if (file_exists($pathname)) {
send_file($pathname, $image);
send_file($pathname, $image, YEARSECS, 0, false, false, '', false, [
'cacheability' => 'public',
'immutable' => true,
]);
} else {
if (debugging()) {
echo "The shell command<br />$cmd<br />returned status = $status<br />\n";