Alternative method for shielding browser cache _ PHP Tutorial

Source: Internet
Author: User
Shielding browser cache is an alternative method. Sometimes we do not want the browser to use cache to speed up the display of webpages, especially those webpages that frequently update content such as forums, on the Internet, we can use the following methods to block slow Web pages. sometimes we do not want the browser to use cache to speed up the display of web pages, especially those webpages that frequently update content such as forums, the following method can be used to block the cache on the Internet, but I tried it badly.



One day, I found a method to display the latest webpage content under any circumstances, as described below:

Change the webpage link:

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

In the example.

That is to say, as long as a random string is added to the Url of the link that does not affect the content of the webpage, the Url of each access to the webpage is different, so that the browser does not use the existing web page 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.