chatgpt-web icon indicating copy to clipboard operation
chatgpt-web copied to clipboard

feat: 静态资源托管增加gzip压缩

Open SmileSmith opened this issue 1 year ago • 1 comments

在express托管静态资源时,补充expression模块,压缩后可以显著减少网络损耗

image

SmileSmith avatar Mar 13 '23 06:03 SmileSmith

Maybe consider to support more modern compress method like br(brotli) via https://github.com/Alorel/shrink-ray/ (https://www.npmjs.com/package/shrink-ray-current) ?

PeterDaveHello avatar Mar 14 '23 16:03 PeterDaveHello

暂时不添加哈,其实应该还需要前端配合做 gzip 压缩,感谢贡献

Chanzhaoyu avatar Mar 22 '23 10:03 Chanzhaoyu

恩 前端编译期压缩,通过nginx之类的走gzip,性能会更好

SmileSmith avatar Mar 22 '23 11:03 SmileSmith