docs: update production workflow design and runtime changes

This commit is contained in:
2026-06-14 18:47:00 +08:00
parent 58a87706ef
commit b1c59051b9
41 changed files with 2042 additions and 134 deletions
+5 -1
View File
@@ -260,4 +260,8 @@ async def get_dinsar_product_preview(
if not preview_path or not os.path.isfile(preview_path):
raise HTTPException(status_code=404, detail="Preview not found")
media_type = mimetypes.guess_type(preview_path)[0] or "application/octet-stream"
return FileResponse(preview_path, media_type=media_type)
return FileResponse(
preview_path,
media_type=media_type,
headers={"Cache-Control": "public, max-age=31536000, immutable"},
)