docs(pages): bust Pages asset cache with versioned CSS/JS URLs
This commit is contained in:
+3
-2
@@ -38,7 +38,8 @@
|
||||
<link rel="preconnect" href="https://fonts.googleapis.com">
|
||||
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
|
||||
<link href="https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700&display=swap" rel="stylesheet">
|
||||
<link rel="stylesheet" href="assets/site.css">
|
||||
<!-- v= 查询串用于缓存刷新:GitHub Pages 对静态资源有 10 分钟缓存窗口,改版本号强制浏览器取新文件 -->
|
||||
<link rel="stylesheet" href="assets/site.css?v=20260927">
|
||||
<script>
|
||||
// 首屏前确定主题,避免闪烁;无保存偏好时跟随系统
|
||||
(function () {
|
||||
@@ -748,6 +749,6 @@
|
||||
</div>
|
||||
</footer>
|
||||
|
||||
<script src="assets/site.js"></script>
|
||||
<script src="assets/site.js?v=20260927"></script>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
Reference in New Issue
Block a user