open-im-sdk-web-wasm icon indicating copy to clipboard operation
open-im-sdk-web-wasm copied to clipboard

[BUG] Optimize local cache of *.wasm files

Open cipchk opened this issue 1 year ago • 1 comments

OpenIM Server Version

3.8

Operating System and CPU Architecture

Linux (AMD)

Deployment Method

Docker Deployment

Bug Description and Steps to Reproduce

3.8 增加了 openIM.wasm 本地缓存,的确解决加载缓慢问题。但是是通过 etaglast-modified 来判断是否需要更新,但这种方式一但重写发布新 Docker Image 时文件的修改时间会发生改变,但实际上我们 wasm 几乎很少会变化,这种变化是打包工具的原因。

建议在缓存逻辑上可以增加一个以 URL Path 作为 Key 就好的选项。

Screenshots Link

No response

cipchk avatar Aug 12 '24 14:08 cipchk

I don't quite understand what this does, and the URL doesn't seem to change.

Bloomingg avatar Aug 14 '24 02:08 Bloomingg