From 1eb3e7781d6630f4f854e02ca8a29fef809c8f13 Mon Sep 17 00:00:00 2001 From: Safat Date: Mon, 10 Nov 2025 21:36:52 +1100 Subject: [PATCH] MDL-85235 tool_mobile: Make mobile manifest cookieless and cacheable --- admin/tool/mobile/mobile.webmanifest.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/admin/tool/mobile/mobile.webmanifest.php b/admin/tool/mobile/mobile.webmanifest.php index 72a057b4547..dfa1ec09806 100644 --- a/admin/tool/mobile/mobile.webmanifest.php +++ b/admin/tool/mobile/mobile.webmanifest.php @@ -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.