From e71f35c041eef783a8e5c22c44db8320de0f1bb4 Mon Sep 17 00:00:00 2001 From: Jared Vititoe Date: Wed, 1 Apr 2026 17:43:18 -0400 Subject: [PATCH] =?UTF-8?q?Fix=20asset=20cache-busting=20=E2=80=94=20inclu?= =?UTF-8?q?de=20base.css=20and=20base.js=20in=20ASSET=5FVERSION?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Previously only dashboard/ticket assets were tracked, so changes to base.css and base.js were never reflected in the cache-busting version string. Browsers served stale cached copies, meaning the header padding-top fix never reached users. Touch base files to bump mtime and force a cache miss immediately. Co-Authored-By: Claude Sonnet 4.6 --- config/config.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/config/config.php b/config/config.php index 9b6899b..1832492 100644 --- a/config/config.php +++ b/config/config.php @@ -25,13 +25,15 @@ $GLOBALS['config'] = [ 'APP_SUBTITLE' => $envVars['APP_SUBTITLE'] ?? 'LotusGuild Infrastructure', 'APP_VERSION' => $envVars['APP_VERSION'] ?? '1.2', - // Asset cache-busting version — auto-computed from dashboard.js/css mtime so + // Asset cache-busting version — auto-computed from key asset mtimes so // browsers always pick up changes on deploy. Override via ASSET_VERSION in .env. 'ASSET_VERSION' => (function() use ($envVars) { if (!empty($envVars['ASSET_VERSION'])) return $envVars['ASSET_VERSION']; $files = [ + __DIR__ . '/../assets/css/base.css', __DIR__ . '/../assets/css/dashboard.css', __DIR__ . '/../assets/css/ticket.css', + __DIR__ . '/../assets/js/base.js', __DIR__ . '/../assets/js/dashboard.js', __DIR__ . '/../assets/js/ticket.js', ];