①: I currently use the Freemaker tag background directly define two keys, using static constants, the following constants are defined as Tomcat starts loading, I wrote a tool class implementation static final String js_version = " Jsversion ";//js version key static final long Js_version_value = System.currenttimemillis ();//js version value Then put the two key and put to the Freemaker default Startup tool class in the last introduction of JS file as follows <script type= "Text/javascript" src= "${contextpath}/js/back/ Adjustratio/adjustratio.js?version=${jsversion} "></script>②: There is one of the most stupid way is to update the line of JS every time you need the following: <script type = "Text/javascript" src= "${contextpath}/js/back/adjustratio/adjustratio.js?1" ></script> Every update after the question mark has to change the number.
JS Real-Time force update on server