Solution: When refreshing the page, dynamically import the tagged css file, the code is as follows:
//get random number var getRandom = function (n) { var random = ''; for(var i=0;i<n;i++){ random+=Math.floor(Math.random()*10); } return random; } // css refreshes random tags every time function createLink(cssURL){ var head = document.getElementsByTagName('head')[0], linkTag = null; if(!cssURL){ return false; } linkTag = document.createElement('link'); linkTag.setAttribute('rel','stylesheet'); linkTag.setAttribute('_group','recm'); linkTag.setAttribute('type','text/css'); linkTag.href = cssURL; head.appendChild(linkTag); } var cssURL = getRandom (8); cssURL = "./css/test.css?v=" + cssURL; createLink(cssURL);