Details determine success or failure! The significance of browser caching is to improve execution efficiency, but it also brings some problems, causing the server to modify js and css, and the client cannot update
Method 1 generates random numbers
Disadvantage, browser cache is meaningless and is loaded dynamically every time.
Method 2 version number control, set global variables, increase the version number by 1 before each release
Recommended this method, this method is relatively simple. The disadvantage is that HTML pages cannot be used, but there should not be too many such pages
More methods: Automatically implement it by reading the file size and file modification time to generate MD5, compressing and merging js when the program is automatically built, and global The replacement version is complicated. If you are interested, you can study it
Who has a better method?