From 9732ebae9fb250193a3f61014865b576652a01d6 Mon Sep 17 00:00:00 2001 From: "Leo.Kim" <83855438+tpals0409@users.noreply.github.com> Date: Thu, 23 Jul 2026 03:17:24 +0000 Subject: [PATCH] fix(S15P11A705-14): bust static asset cache --- app/static/index.html | 4 ++-- tests/test_ui_contract.py | 9 +++++++++ 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/app/static/index.html b/app/static/index.html index 1e31e5d..3d6d3d7 100644 --- a/app/static/index.html +++ b/app/static/index.html @@ -4,8 +4,8 @@ 할 일 올리기 - - + +
diff --git a/tests/test_ui_contract.py b/tests/test_ui_contract.py index 77bc768..8aa4aab 100644 --- a/tests/test_ui_contract.py +++ b/tests/test_ui_contract.py @@ -1,3 +1,4 @@ +import hashlib from pathlib import Path @@ -50,3 +51,11 @@ def test_receipts_are_not_persisted_in_browser_storage(): assert "JSON.stringify(receipts)" not in script assert "const receipts = []" in script assert "cowork_pending_request" in script + + +def test_static_asset_urls_include_current_content_hash(): + html = Path("app/static/index.html").read_text(encoding="utf-8") + for asset in ("app.js", "style.css"): + content = Path(f"app/static/{asset}").read_bytes() + version = hashlib.sha256(content).hexdigest()[:12] + assert f"/static/{asset}?v={version}" in html