feat(h5): FastAPI StaticFiles 同源托管 /h5(.html no-cache)
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
"""H5 静态托管冒烟:/h5 同源服务页面 + .html no-cache(热更核心)。"""
|
||||
from __future__ import annotations
|
||||
|
||||
|
||||
def test_h5_shared_bridge_served(client) -> None:
|
||||
resp = client.get("/h5/shared/bridge.js")
|
||||
assert resp.status_code == 200
|
||||
|
||||
|
||||
def test_h5_html_no_cache(client) -> None:
|
||||
# records 迁入前,先用已在仓库的 mine 页验证 .html 的 no-cache 响应头
|
||||
resp = client.get("/h5/mine/index.html")
|
||||
assert resp.status_code == 200
|
||||
assert resp.headers.get("cache-control") == "no-cache"
|
||||
Reference in New Issue
Block a user