Home Hosting Service How to clear your browser’s cache

How to clear your browser’s cache

0
1897

If you have made changes to your website but they are not appearing when you load the page, you may need to either force the page to reload from the server or clear your cache.

This article walks you through how to clear your browser’s cache.

Forcing a page reload

Before clearing your cache, you can first try forcing a page reload. To force a reload from the server, press:

Windows
CTRL + F5
Mac
CMD + R
Ks command.gif (Command key) – On some Apple keyboards, this key also has an Apple (Ks apple icon.gif) logo (Source: OS X keyboard shortcuts).
Linux
F5

Clearing your browser’s cache

Sometimes forcing a reload isn’t enough, so you may need to clear your browser’s supply of stored files. Select the browser you use and follow these instructions to clear the cache.

Windows browsers

Using Firefox (v54)

  1. Click the  icon on the top right. In the dropdown, select ‘Options’.
  2. On the ‘Options’ page, there are several menu items on the left. Click the ‘Advanced’ menu item.
  3. In the center pane you now see several Advanced options. From the top menu, click the ‘Network’ tab.
  4. Under the ‘Cached Web Content’ section is a button titled ‘Clear Now‘. Click this button.
  5. Close and relaunch your browser.

Click the following link to view further instructions from Mozilla:

Using Chrome (v59)

  1. Click the Chrome Settings Icon.png icon on the top right.
  2. In the dropdown, select More Tools.
  3. Select Clear Browsing Data.
  4. In the pop-up box that appears, choose the items you wish to delete.
  5. Click the Clear browsing data button to finish.
  6. Close and relaunch your browser.

Click the following link to view further information:

Using Internet Explorer (v11)

  1. From the ‘Command bar’, click the ‘Tools’ tab and select ‘Internet Options’.
  2. Click the ‘General’ tab.
  3. On the ‘General’ tab, click the Delete… button under the ‘Browsing history’ section.
  4. Un-check the box titled ‘Preserve Favorites website data’.
  5. Check the boxes titled ‘Temporary Internet files and website files’, ‘Cookies and website data’, ‘History’ and ‘Download History’.
  6. Click the Delete button.
  7. Close and relaunch your browser.

Click the following link to view instructions on how to delete cache in IE9:

Macintosh browsers

Using Safari (v10)

  1. Click the Safari menu item on the top left of your screen.
    Safari_Preferences
  2. In the dropdown box choose Preferences. You could also click Cmd + ,.
  3. In the pop-up window click the Privacy tab.
  4. Click the Manage Website Data… button.
  5. Click the Remove All button.
  6. On the pop-up box click the Remove Now button.
  7. Close and relaunch your browser.

Using Firefox (v55)

  1. Click the History menu item.
    Firefox_History
  2. In the dropdown menu select Clear Recent History….
  3. A pop-up box displays. In the dropdown box titled ‘Time range to clear.’ select ‘Everything’.
  4. In the ‘Details’ section below, check ‘Cookies’ and ‘Cache’.
  5. Click the Clear Now button to save.
  6. Close and relaunch your browser.

Using Chrome (v60)

  1. Click the Chrome menu item.
    Chrome History
  2. In the dropdown menu, select Clear Browsing Data…’.
  3. In the pop-up box, check the options ‘Cookies and other site and plug-in data’ and ‘Cached images and files’.
  4. Click the Clear Browsing Data button.
  5. Close and relaunch your browser.

Clearing DNS cache

Most operating systems are designed to cache DNS records which is generally a good practice as it allows for faster requests to a web site. However, if DNS has recently changed, it may be necessary to flush the cache on your computer in order to retrieve the new DNS records. What this does is remove the local cache from your system and allow you to grab the most recent cache that your ISP is using.

Flushing the DNS records on your computer is very useful when trying to speed up DNS resolution for a newly added or modified domain on your account. View the following links for instructions on how to flush your DNS:

Flushing your DNS cache in Windows

Windows XP

  1. Click the Start button and then click Run.
  2. Type in cmd and click OK.
  3. In the window that comes up, enter:
    C:\Users\username> ipconfig /flushdns
  4. Press the ‘Enter’ key and repeat the process two more times.
  5. Type exit, and then press the ‘Enter’ key to close the window.

Windows Vista

  1. Click the Start button.
  2. In the menu, select ‘All Programs’.
  3. Click Accessories.
  4. Right click on ‘Command Prompt’.
  5. Select the option ‘Run As Administrator’.
  6. In the window that opens, type the following, and then press ‘Enter’:
    C:\Users\username> ipconfig /flushdns
  7. Press the ‘Enter’ key and repeat the process two more times.
  8. Type exit, and then press the ‘Enter’ key to close the window.

If you wish to instead verify what domains and IPs your computer currently has cached, you may use the command ipconfig /displaydns in the steps described above.

Windows 7

  1. Click the Start button, and then type ‘cmd’ in the search bar (where it says ‘search for programs and files’).
  2. In the command prompt that pops up, enter:
    C:\Users\username> ipconfig /flushdns
  3. Press the ‘Enter’ key, and then repeat the process two more times.
  4. Type exit, and then press the ‘Enter’ key to close the window.

Windows 8 & 10

  1. Click the Windows logo while holding the R key at the same time.
    The run box appears.
  2. In the run box, type cmd and then hit the ‘Enter’ key.
  3. In the command prompt that pops up, enter:
    C:\Users\username> ipconfig /flushdns
    The command runs and returns to the prompt.
  4. Type exit, and then press the ‘Enter’ key to close the window.

Flushing your DNS cache in Mac OS X and Linux

Flushing your cache on Mac OS X

The commands to flush cache in OS X are slightly different depending on the version you’re running. First, make sure you’ve opened up your terminal on your computer.

Once opened, run the command below that corresponds to your version of OS X.

OS X 10.4 (Tiger)

macbook$ lookupd -flushcache

OS X 10.5 (Leopard) and 10.6 (Snow Leopard)

macbook$ dscacheutil -flushcache

OS X 10.7 (Lion) and 10.8 (Mountain Lion)

macbook$ sudo killall -HUP mDNSResponder

OS X 10.9 (Mavericks)

macbook$ dscacheutil -flushcache; sudo killall -HUP mDNSResponder

OS X 10.10 (Yosemite)

Versions 10.10.1, 10.10.2, 10.10.3

macbook$ sudo discoveryutil udnsflushcaches

Versions 10.10.4+

macbook$ sudo dscacheutil -flushcache;sudo killall -HUP mDNSResponder

OS X 11 (El Capitan) and OS X 12 (Sierra)

macbook$ sudo killall -HUP mDNSResponder

Flushing your DNS cache in Linux

Most current Linux distributions do not use a DNS resolver cache in the same way that Windows and Mac OS X use. To confirm which particular daemon is installed for your Linux distribution, check the website or its forum pages.

However, a common DNS caching application sometimes used is the Name Service Caching Daemon (nscd). It’s most likely not installed by default so there is no need to flush the cache. But, if you’ve already installed it you can flush the cache by running the following command in a terminal:

[local]$ sudo service nscd restart 

Alternatively, you can try these commands:

[local]$ /etc/rc.d/init.d/nscd stop
[local]$ /etc/rc.d/init.d/nscd start

source: dreamhost