MDL-85235 tool_mobile: Make mobile manifest cookieless and cacheable

This commit is contained in:
Safat
2025-11-10 22:07:39 +11:00
parent 7838e3f247
commit 1eb3e7781d
+3
View File
@@ -28,10 +28,13 @@
*/
define('NO_DEBUG_DISPLAY', true);
define('NO_MOODLE_COOKIES', true);
require_once(__DIR__ . '/../../../config.php');
header('Content-Type: application/json; charset: utf-8');
header('Cache-Control: public, max-age=' . HOURSECS . ', no-transform');
header('Expires: ' . gmdate('D, d M Y H:i:s', time() + HOURSECS) . ' GMT');
$mobilesettings = get_config('tool_mobile');
// Display manifest contents only if all the required conditions are met.