The method for canceling cache in WeChat browser is as follows:

Source: Internet
Author: User

The browser cancels the cache.
This article mainly introduces how to cancel the cache in the browser. This article uses the meta header information to cancel the cache in the browser, especially during development. For more information, see

When you do public accounts and debug mobile phone pages, you cannot skip to the browser to open the page. During the debugging phase, android browsers always cache html static resources by default, every time static resources change or even when new content is released, it is very likely that it cannot be updated in the browser. It is annoying to clear the cache to see the effect. Some customers have installed QQ browsers, which actually call the QQ browser. Sometimes even the cache is invalid, and the QQ browser cache needs to be cleared.

After some exploration, the browser indeed caches the content on the upper layer of webview: if the address is requested, it will exist locally and will not be taken online.


The solution is to add the following header information to the debugging or frequently updated page.


The Code is as follows:
<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"/>

Well, the browser will always pull this page online.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.