Use meta to cancel the flow of the cache for each visit to refresh the page for easy debugging

Source: Internet
Author: User

If you want to prohibit the browser from the local cache access to the page, you can set the page does not exist in the cache, each visit to refresh the page, the following is meta in this convenient usage, the need for friends can refer to the following:

<!--prevent the browser from accessing pages from the local cache. -
<meta http-equiv= "Pragram" content= "No-cache" >
<!--pages are not in the cache, and each visit refreshes the page. -
<meta http-equiv= "Cache-control" content= "No-cache, must-revalidate" >
<!--similar to the above meaning, you must reload the page--
<meta http-equiv= "Expires" content= "0" >
<!--the page expires in cache at 0 and must be re-subscribed from the server once the page expires
<meta http-equiv= "Content-type" content= "text/html; Charset=utf-8 "/>

Turn from: Home of the script

Use meta to cancel the flow of the cache for each visit to refresh the page for easy debugging

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.