admin
c28e9edb53
fix(nginx): 管理台静态资源 no-store + /admin/ 500 + 88 不再跳 18098 (1.0.23)
1. **管理台所有 HTML/CSS/JS 改 Cache-Control: no-store**(expires -1 + add_header)
- 解决「代码上线了但用户浏览器一直用旧 JS」——管理员看不到新增字段
的典型表现就是浏览器缓存命中。文件都不大(HTML<5KB / CSS<10KB /
JS<15KB),无缓存的性能影响可忽略。
2. **/admin/ 带尾斜杠 500 修**
- 根因:nginx 把请求 URI 拼到 alias 后打开文件/目录;(末尾斜杠、
剩余空)+ alias 目录 + index 拼出 `overview.htmlindex.html` 报错
「is not a directory」。改用 internal rewrite 落到 `/admin/overview.html`,
重新走 location 匹配(命中 `= /admin` 那条 alias 文件)。
3. **路由器 88 不再被踢到 18098**
- 根因:nginx 默认 `absolute_redirect on; port_in_redirect on;`,302
Location 写绝对 URL + 实际 listen 端口(18098),把外部 88 用户踢出
反代链。三条 server(lm / mdm / *.dm)都加 `absolute_redirect off;
port_in_redirect off;`,Location 变成相对路径,浏览器留 88。
4. **e2e 加 3 条无缓存断言 + /admin/ 200 断言防回归**
回归 334 全绿(网关 106 + LLM 228)。
2026-09-15 13:11:28 +08:00
..
2026-09-11 15:37:09 +08:00
2026-09-15 13:11:28 +08:00