Solutions for web-based Mini programs that do not take effect after modifying css and js
Many of them are packaged in web versionsMini programsAfter changing css and js
The Mini programs have never taken effect. After waiting for almost a day, the interface is still the same. No matter how you enter the Mini programs, the previous state has not been changed, and the cache has not been updated in a timely manner.Poor user experience
Solution: FindReference javascript and css paths to add time stamps to solve the caching problem of Mini programs
Operation process:You need to add it in the head.html of the mobile version template you developedFind css and js that change frequently
Add code at the end
? t=<? php echo date("YmdHis",time())?& gt;
YmdHis represents the month, minute and second. As soon as the page is refreshed, the numbers behind the path will change accordingly, so that the internal css and js of the Mini programs can be updated in real time.
As shown in the picture below

Save it after modification. After clearing the cache of your website, go to the Mini programs and it will appear immediately.
© Website copyright and disclaimer
1.[honmau Media] independently owns the copyright of all materials on relevant pages of this website;
2. No one is allowed to copy it without the express written permission of [honmau Media];
3. The articles that do not indicate "honmau Media" on this website are all from the Internet and are only for everyone to learn and refer;
4. If there is any infringement/violation/irregularity, please contact customer service QQ or email to delete it, please understand;
5.[honmau Media] reserves the right to correct, modify and update this statement at any time.legal notice