Methods for preventing the elimination of micro-browser caching

Source: Internet
Author: User

Some customers installed QQ browser, micro-mail is actually called QQ Browser, and sometimes even light cleaning micro-letter cache is invalid, QQ browser cache also want to clear.

Follow the articles on the Web and add the following on the head of the page:

<meta http-equiv= "Cache-control" content= "max-age=0"/>
<meta http-equiv= "Cache-control" content= "No-cache"/>
<meta http-equiv= "Expires" content= "0"/>
<meta http-equiv= "Expires" content= "Tue, 1980 1:00:00 GMT"/>
<meta http-equiv= "Pragma" content= "No-cache"/>

The solution is to include the following header information in the debug 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"/>

The easiest way to do that is

The address takes a random number parameter, while the page's header flag declaration prohibits caching. Also need to check your program's page cache, is not done the page cache.

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.