feat(chat): 完善附件预览与订单提取交互
- 优化聊天附件上传、预览及 PDF.js 加载 - 完善订单文档画布与审核预览体验 - 优化订单提取运行状态及发送流程 - 增强会话附件接口与相关测试覆盖 - 更新 Nginx 配置、技术文档及四语言文案
This commit is contained in:
1 parent
104afa3844
commit
9d2fa522fa
29 files changed
+584
-140
No files matched your search
@@ -15,8 +15,22 @@ server {
|
||||
}
|
||||
|
||||
# Vite 构建产物(/assets/ 下带 hash 文件):内容寻址,文件名一变即换新缓存,可放心长期 immutable 缓存。
|
||||
# alpine nginx 默认 mime.types 无 .mjs;缺省会落到 default_type application/octet-stream。
|
||||
# 同级 include + types 合并映射。前端另用 Blob Worker 绕过错误 MIME 的 immutable 磁盘缓存。
|
||||
location /assets/ {
|
||||
root /usr/share/nginx/html;
|
||||
include /etc/nginx/mime.types;
|
||||
types {
|
||||
text/javascript mjs;
|
||||
}
|
||||
add_header Cache-Control "public, max-age=31536000, immutable";
|
||||
}
|
||||
|
||||
# 显式兜底:任意 .mjs 都按 JS 模块输出(RFC 9239: text/javascript)。
|
||||
location ~* \.mjs$ {
|
||||
root /usr/share/nginx/html;
|
||||
default_type text/javascript;
|
||||
types { }
|
||||
add_header Cache-Control "public, max-age=31536000, immutable";
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user