Project version iteration how to prevent client-side built-in browser caching

recently, I have done nailing micro-applications. After every iteration of the project version, after the code update is launched, basically every phone has to manually clear the cache, otherwise it will always be the old code. I wonder if there is any solution to the built-in browser cache in the client (such as Nail, Wechat, etc.)?

the strategy made by the server is to generate different directory file names for each code deployment to prevent requests from being consistent. When the front-end code is packaged, it also adds a different hash value to the js file, but this cache simply cannot be wiped out, which has a great impact on the user experience

.
Apr.01,2021

do not cache html files

Menu