auto-sync: 2026-05-21 20:57:52

This commit is contained in:
cfdaily
2026-05-21 20:57:52 +08:00
parent 8f91f88a06
commit eff9037752
+3 -3
View File
@@ -265,17 +265,17 @@ async def list_projects_compat():
# ---------------------------------------------------------------------------
# 靜態文件服(前端 dist/F18 實現
# 静态文件服(前端 dist/F18 实现
# ---------------------------------------------------------------------------
DIST_DIR = Path(__file__).parent / "frontend" / "dist"
if DIST_DIR.exists():
# v3.1: 存策略 - HTML 不存(保新版本生效),JS/CSS 長緩存(Vite content hash 已理)
# v3.1: 存策略 - HTML 不存(保新版本生效),JS/CSS 长缓存(Vite content hash 已理)
import mimetypes
_static_app = StaticFiles(directory=str(DIST_DIR), html=True)
class CachedStaticFiles:
""" StaticFiles,添加 Cache-Control """
""" StaticFiles,添加 Cache-Control """
def __init__(self, app):
self._app = app