Masking Browser Caching alternative methods

Source: Internet
Author: User
Tags rand
Sometimes we do not want the browser to use caching to speed up the display of the Web page, especially those forums such as frequently updated content of the page, on the internet can be said to use the following methods to screen the cache, but I tried the effect is not good.

<meta http-equiv= "Pragma" content= "No-cache" >

One day I had the whim to find a way to display the most current Web page content in any situation, as described below:

Please change the link of the Web page to:

Http://xxx.yyy.zzz/page.php?rand=XXXXXXX

Where http://xxx.yyy.zzz/page.php is your Web page, Rand is a Qurey string that you don't use, and xxxxxxx is a random string.

That is, if you add a random string that does not affect the content of the Web page at the URL of the link, so that the URL for each visit to the page is different, so that the browser does not use the page already in the cache, so that each display is the latest content.


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.