This article mainly introduces how to cancel the browser cache. This article uses the meta header information to cancel the browser cache, especially during development, for more information about how to cancel the browser cache, see the next article. This article uses the meta header information to cancel the browser cache, 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:
Well, the browser will always pull this page online.
The above is the detailed description of the method for canceling cache in the browser. For more information, see other related articles on php Chinese network!