Home >Backend Development >PHP Tutorial >Google chrome browser alternative method to block browser cache

Google chrome browser alternative method to block browser cache

WBOY
WBOYOriginal
2016-07-29 08:34:021212browse

Sometimes we don't want the browser to use cache to speed up the display of web pages, especially those web pages with frequently updated content such as forums. It is said on the Internet that you can use the following method to block cache, but I tried it to no avail.
One day, I had a sudden idea and found a way to display the latest web content under any circumstances. The description is as follows:
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, and rand is a Qurey string that you will not use. XXXXXXX is a random string.
That is to say, as long as a random string is added to the URL of the link that will not affect the content of the web page, so that the URL of the web page is different every time it is accessed, so that the browser does not use the web page that is already in the cache. , so that the latest content is displayed every time.

The above introduces the alternative method of blocking browser cache in Google Chrome browser, including the content of Google Chrome browser. I hope it will be helpful to friends who are interested in PHP tutorials.

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn