royenheart/dsh-plugin-perf ↗★ 0
dsh-plugin-perf
DeepSeek Harness 网页性能优化插件,提供 shell 资源和客户端包的压缩、不可变缓存以及预加载提示,无需修改 dsh 源码。
AI 分析
核心用途是优化 DSH 网页加载性能。适合需要提升 Web 界面响应速度、减少静态资源传输延迟的 DSH 用户,支持 gzip/brotli 压缩与不可变缓存配置。
安装
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:royenheart/dsh-plugin-perf说明文档
阅读完整 README ↗Configuration
| Field | Type | Default | Description |
|---|---|---|---|
compression | 'gzip' | 'br' | 'gzip+br' | 'none' | gzip | Content-Encoding(s) the plugin may emit when the request accepts them. |
immutableCache | boolean | true | Emit Cache-Control: public, max-age=31536000, immutable for content-addressed shell assets and plugin bundles. |
preloadClientBundles | 'none' | 'immediate' | 'all' | immediate | Inject `` for stage-one (immediately:true) entries, every entry, or no entries. |
cacheMaxEntries | number | 128 | Compressed-buffer cache entries. |
cacheMaxBytes | number | 67108864 | Total bytes of cached compressed buffers (64 MiB). |
logSummary | boolean | false | Log one bytes-served summary line on unload. |
autoDetect | boolean | true | Probe the official server at startup and skip each optimization point it already implements. |
probeTimeoutMs | number | 2000 | Timeout for one official-capability probe request; probe failures keep the plugin enabled. |
All fields are optional and conservative; the schema is exported as Config (Schemastery) and the plugin also works with no config at all.