From cb90ea087e9f871e2159a4cd04a505ffcaa2740e Mon Sep 17 00:00:00 2001 From: Myron Blair Date: Thu, 11 Jun 2026 12:42:34 +0000 Subject: [PATCH] Fix admin: add Cache-Control: no-transform to block Cloudflare Rocket Loader --- public_html/admin/index.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/public_html/admin/index.php b/public_html/admin/index.php index 7e0de13..d1b7008 100644 --- a/public_html/admin/index.php +++ b/public_html/admin/index.php @@ -5,6 +5,9 @@ require_once __DIR__ . '/../../api/lib/db.php'; session_name('jarvis_admin'); session_start(); +// Prevent Cloudflare Rocket Loader from deferring inline scripts (breaks doLogin, CAT_COLORS, etc.) +header('Cache-Control: no-transform'); + // ── AUTH HELPERS ────────────────────────────────────────────────────────────── function loggedIn(): bool { return !empty($_SESSION['admin_user']); } function j(mixed $d): never { header('Content-Type: application/json'); echo json_encode($d); exit; }