Merge branch 'MDL-77797-latex-headers' of https://github.com/brendanheywood/moodle

This commit is contained in:
Ilya Tregubov
2023-05-16 15:22:51 +08:00
+4 -1
View File
@@ -64,7 +64,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";