When doing mobile web development, it is inevitable to use WeChat to scan the page for debugging. The Android version of WeChat browser has always cached HTML static resources by default. Every time the static resources change or even new content is released, the WeChat browser It is very likely that the app will not be updated, and you often have to clear the WeChat cache to see the effect, which is very annoying. Some customers have installed QQ Browser, and WeChat actually calls QQ Browser. Sometimes even clearing the WeChat cache is ineffective, and the cache of QQ Browser must also be cleared.
The solution is to add the following header information during the debugging phase or frequently updated pages
<meta http-equiv="Cache-Control" content="no-cache, no-store, must-revalidate" /><meta http-equiv="Pragma" content="no-cache" /><meta http-equiv="Expires" content="0" />