How To Clear A Browser Cache

来源:互联网 发布:计算机网络 书籍 知乎 编辑:程序博客网 时间:2024/03/28 17:38

Before we start with explanations on how to clear a browser cache, we are going to look at the cache briefly. What is it? Why is it there in first place? The cache is a temporary storage on your computer. It is usually located on a hard drive but can be moved freely around, for instance to removable drives or even to the RAM. Page elements are stored in the cache whenever you visit a website. This is done to speed up the loading times on your next visit, or if you navigate to another page on the website.

A basic example. Say you view ten pages on Ghacks. Instead of having to download the static Ghacks logo ten times you only download it once from the server. The logo is loaded from cache when you open the other nine pages of the website. This saves bandwidth and connections to the server which speeds up the display of the website in the web browser.

The cache can be the source of problems as well. This is for instance the case if I change the Ghacks logo after it has been stored in your cache. Your browser may display the old logo even though a new one has been uploaded to the site. While it is usually not a problem for logos and such, it could very well be problematic if you get a “site maintenance” information which does not go away, even ifyourfriends are telling you that they can access the site again.

That’s why it is important to know how to clear the browser cache. Unfortunately, it is a different procedure with every Internet browser. This guide covers the five popular browsers Internet Explorer, Mozilla Firefox, Google Chrome, Opera and Safari.

How To Clear A Browser Cache

Internet Explorer 8, 9 and newer

  • Press ALT+H, then Click Tools > Delete Browsing History
  • Or, click Tools > Internet Options > Delete
  • Or, open Start Menu, click Control Panel, select Internet Options > Delete

Mozilla Firefox 3.5, 4 and newer

  • Click Tools > Options > Advanced > Network > Clear Now
  • Or click Firefox > History > Clear Recent History
  • Or, press Ctrl-Shift-Del

Make sure Cache is selected in the options. It may also be switch the time range to everything to make sure that everything that is currently stored in the cache gets deleted.

You can also clear the browser cache manually. It is usually not necessary but handy to know anyway.

Internet Explorer

  • Windows XP: C:\Documents and Settings\username\Local Settings\Temporary Internet Files
  • Windows 7, Vista: C:\Users\username\AppData\Local\Microsoft\Windows\Temporary Internet Files

Mozilla Firefox

  • Windows XP: C:\Document and Settings\username\Local Settings\Application Data\Mozilla\Firefox\Profiles\code.default\Cache
  • Windows 7, Vista: C:\Users\username\AppData\ Local\Mozilla\Firefox\Profiles\code.default\Cache
  • Linux: /.mozilla/firefox/.default/Cache/
  • Mac: ~/Users/username/Library/Caches/Firefox/
    Profiles/code.default/Cache

Google Chrome

  • Windows XP: C:\Documents and Settings\username\Local Settings\Application Data\Google\Chrome\
  • Windows 7, Vista: C:\Users\username\AppData\Local\Google\Chrome\User Data\Default\Cache
  • Linux: ~/.cache/google-chrome
  • Mac: ~/Library/Caches/Google/Chrome

Opera

  • Windows XP: C:\Documents and Settings\username\Local Settings\Application Data\Opera\Opera
  • Windows Vista, 7: c:\Users\username\AppData\Local\Opera\Opera\application_cache\
  • Mac: Check Menu > Help > About Opera.
  • Linux: Check Menu > Help > About Opera.

Safari

  • Windows XP: c:\Document and Settings\username\Application Data\Apple Computer\Safari
  • Windows Vista, 7: C:\Users\username\AppData\Local\Apple Computer\Safari
  • Mac: ~/Library/Caches/Safari/

Reference: http://www.ghacks.net/2011/04/23/how-to-clear-a-browser-cache/ 

原创粉丝点击