diff --git a/install.php b/install.php index ea98d99..95532a3 100644 --- a/install.php +++ b/install.php @@ -245,7 +245,7 @@ if (isset($_POST['do_install'])) { - +
diff --git a/lib/bootstrap.php b/lib/bootstrap.php index e098922..7fdf26a 100644 --- a/lib/bootstrap.php +++ b/lib/bootstrap.php @@ -6,6 +6,9 @@ if (!defined('FB_ROOT')) { define('FB_ROOT', dirname(__DIR__)); + // 静态资源版本号:改 assets/ 下的 css/js 后把这个数字 +1, + // 让浏览器与 CDN 缓存失效。全站只此一处,别再往页面里写死数字。 + if (!defined('FB_ASSET_V')) { define('FB_ASSET_V', 10); } } /* ------------------------------------------------------------------ diff --git a/lib/layout.php b/lib/layout.php index 393ce86..5798e8a 100644 --- a/lib/layout.php +++ b/lib/layout.php @@ -27,7 +27,7 @@ function fb_layout_head($title, array $opt = []) { - +