Files
Leantime/dev/DWGViewer/.htaccess
wangruiguo d647428529
Some checks failed
Security Audit / Composer Security Audit (push) Has been cancelled
Security Audit / NPM Security Audit (push) Has been cancelled
Security Audit / CodeQL Analysis (push) Has been cancelled
OneBot: Leantime 改造版源码(BOM/Univer 表格/AI 接管/品牌替换等)
2026-09-03 18:49:20 +08:00

16 lines
674 B
ApacheConf
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# WebAssembly 必须带正确的 MIME,否则 instantiateStreaming 会失败
AddType application/wasm .wasm
AddType text/javascript .js .mjs
# wasm/图标体积大,允许长缓存(升级时改文件名或加 ?v=)
<FilesMatch "\.(wasm|css|png|ico)$">
Header set Cache-Control "public, max-age=2592000"
</FilesMatch>
# 防下载:图纸源文件一律不允许直接 GET,只能走 api/model.php(校验短时令牌 + 解密)。
# 查看器已经会自动走令牌流程,所以封掉不影响正常使用。
# 如果你希望图纸可以直链下载,把下面这段删掉即可。
<FilesMatch "\.(dwg|dxf|enc|DWG|DXF)$">
Require all denied
</FilesMatch>