Repository navigation
修复静态资源缓存顽疾:URL 加内容哈希版本指纹 + no-cache 响应头 - #25
Merged
Merged
Conversation
|
Reviewed commit: 🤖 Review 门禁 — 判定:
|
📒 Review ledger state
完整数据保存在 |
zj1123581321
added a commit
that referenced
this pull request
Jul 23, 2026
- 260723-0214 HANDOFF 头部标注已被 260723-0246 取代(范围锁定 Stage 1) - 章节 plan §12:接线批 T1/T6-T10 与计划外 T11 实际已于 2026-07-19 全部完成并部署生产(stacked PR #15-#25),checkbox 此前未同步 via [HAPI](https://hapi.run) Co-Authored-By: HAPI <noreply@hapi.run> Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
zj1123581321
added a commit
that referenced
this pull request
Oct 15, 2026
修复静态资源缓存顽疾:URL 加内容哈希版本指纹 + no-cache 响应头
zj1123581321
added a commit
that referenced
this pull request
Oct 15, 2026
- 260723-0214 HANDOFF 头部标注已被 260723-0246 取代(范围锁定 Stage 1) - 章节 plan §12:接线批 T1/T6-T10 与计划外 T11 实际已于 2026-07-19 全部完成并部署生产(stacked PR #15-#25),checkbox 此前未同步 via [HAPI](https://hapi.run) Co-Authored-By: HAPI <noreply@hapi.run> Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
范围
生产事故修复:部署新版后用户端 floating-toc.js 被中间代理/浏览器缓存旧版本(强刷+无痕均拿不到新文件),页面 HTML 是新结构但目录面板跑旧逻辑。
src/web/static全部文件计算内容合并 sha256 短哈希,注入模板全局asset_v;模板中 floating-toc.js/css、history.html 引用改为?v={{ asset_v }}——内容变 URL 必变,任何缓存都不敢用旧的/static/响应统一附加Cache-Control: no-cache(每次回源验证,ETag 命中仍 304 省带宽)index.html/history.html为纯静态页不经模板,其子资源由 no-cache 头覆盖(最小侵入,见 PR 说明)验证证据
uv run pytest tests/unit:2476 passed 全绿