Disable browser cache and browser cache

Source: Internet
Author: User
Tags internet cache

Disable browser cache and browser cache

HTML: <META HTTP-EQUIV="pragma" CONTENT="no-cache"> <META HTTP-EQUIV="Cache-Control" CONTENT="no-store, must-revalidate"> <META HTTP-EQUIV="expires" CONTENT="Wed, 26 Feb 1997 08:21:57 GMT"> <META HTTP-EQUIV="expires" CONTENT="0"> ASP response.expires=0 response.addHeader("pragma","no-cache") response.addHeader("Cache-Control","no-store, must-revalidate") PHP header("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); header("Cache-Control: no-store, must-revalidate"); header("Pragma: no-cache"); JSP: response.addHeader("Cache-Control", "no-store, must-revalidate"); response.addHeader("Expires", "Thu, 01 Jan 1970 00:00:01 GMT");

Article Reprinted from: http://bbs.it-home.org/thread-16775-1-1.html

 


How to disable browser cache in HTML files

Right, every refresh forces the webpage to be reloaded from the server:
Meta http-equiv = Cache-Control content = no-cache/>

Do you want to save images on a webpage to a local cache directory? That is not possible for the time being. Currently, all browsers cannot.

How To Disable IE cache?

What is Internet cache?
To speed up web page access, Internet Explorer will store the web page content (including images and cookie files) you have visited on your computer using a cumulative acceleration method. This storage space is called IE cache. In the future, when we visit the website, IE will first search for this directory. If there is already accessed content, IE does not need to be downloaded from the Internet, but is directly called from the cache, this increases the speed of Website access.
Set the IE cache size:
To speed up IE access, IE cache is essential. By default, the IE cache is installed in the system zone, which consumes a large amount of system space. Therefore, if your system space is really tight, you can reduce the space occupied by the cache and select "Internet Options" under the "Tools" menu of IE ", on the "General" tab, you will see the "Temporary Internet Files" and click "set, then, in the displayed "Settings" dialog box, set the cache size to a proper value. You can also directly move the IE cache to another location.

Click "Settings" under "Temporary Internet Files", click "Move folder" in the "Settings" dialog box, and select a folder in "Browse folder, move the IE cache to other places, so you don't have to worry about the large size of the IE cache, occupying more space.
To speed up web page access, the InternetExplorer browser uses the cumulative acceleration method to store the web page content (including images and cookie files) you have visited on your computer. This storage space is called IE cache. In the future, when we visit the website, IE will first search for this directory. If there is already accessed content, IE does not need to be downloaded from the Internet, but is directly called from the cache, this increases the speed of Website access.
After reading this, please do not disable it. Just move it to another disk.

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.