Wikipedia:Bypass your cache

From Free net encyclopedia

{{{1{{{1|}}}|

Shortcut:
{{{1|}}}
}}}

Wikipedia saves bandwidth by instructing your web browser to store many parts of the site in your local cache (normally on your hard drive), so that you only have to download them once.

Sometimes this has the undesired and confusing result that after making a change you still see the old version of a page, or other abnormalities appear, such as changes to the site's interface not taking effect.

When you encounter odd behaviour, please try instructing your browser to bypass the cache so that the whole page is reloaded even if there is a cached copy. Normally, revisiting the cached page, or clicking "Refresh" or "Reload", will cause the browser to ask the website if there is a newer version available, downloading only if there is; the instructions below explain how to over-ride this behaviour.

Do this before reporting the problem. If the problem persists, see wikipedia:bug reports.

In extreme circumstances, it may be worth trying to clear the entire cache, or disable it permanently, but note that this will mean sites that you visit frequently are likely to take longer to load, since files that were previously in the cache will need to be downloaded again.

Contents

Instructions for popular browsers

Internet Explorer

  • To reload a page and bypass the cache:
    • either: Hold the Control key, and press F5.
    • or: Hold the Control key, and click the Refresh button on the toolbar.
  • To completely clear the cache (see note above):
    • Click on 'Tools' and then 'Internet Options' and choose the 'General' tab. In the 'Temporary Internet files' section, click 'Delete Files...'. You will then get a dialogue box asking if you want to delete just the temporary files, or all offline content. Choose the latter and click 'OK'.
  • To change cache settings (only do this if you are reasonably confident of what you are doing):
    • Selecting 'Tools' → 'Internet Options' → 'Temporary Internet files' → 'Settings...' allows you to make advanced configuration changes to the cache.
      • There is an option labelled "Check for a new version of stored pages:" This does not bypass the cache, it merely determines how often the browser asks if there is a newer version available.

Konqueror

  • To reload a page and bypass the cache:
    • either: Press F5.
    • or: Click the Reload button on the toolbar.
    • (Unlike other browsers, Konquerors seems to bypass its cache whenever you reload a page.)
  • To completely clear the cache (see note above):
    • From the 'Settings' menu, select 'Configure Konqueror'. Scroll down to select the icon labelled 'Cache', and click the button labelled 'Clear Cache'.

Mozilla and most subclasses

This includes Firefox and Netscape Navigator (versions 6.x and 7.x).

  • To reload a page and bypass the cache:
    • either: Hold down the Control and Shift keys, and press R. On an Apple Mac, use the Command key instead of Control.
    • or: Hold down the Shift key, and click the Reload button on the navigation toolbar.
  • To completely clear the cache (see note above):
    • From the 'Edit' or 'Tools' menu, choose 'Preferences' or 'Options'. Expand the 'Advanced' options and choose 'Cache' or 'Privacy'. Click the button called 'Clear Cache'.
    • In new versions of Mozilla Firefox, you can easily clear the cache, history and cookies: Hold down the Control and Shift keys, and press Delete (or Del), then choose what you want to remove.
    • For Mozilla Firefox, go to 'Tools' → 'Options' and click on 'Privacy' (picture of a key) in the sidebar of the window that pops up. Click the 'Clear' button that is next to the word 'Cache'.
  • To disable the cache permanently (only do this if you are reasonably confident of what you are doing):
    • Click on the word 'Cache' and tell the computer to allocate 0 KB to store the cache in.

Opera

  • Reloading a page:
    • Opera does not appear to have an option to forcibly by-pass the cache, so if a normal refresh does not seem to work, you will have to try emptying the cache completely.
  • To completely clear the cache :
    • From the 'Tools' menu, choose 'Preferences'. Expand the 'Advanced' options and choose 'History'. Click the button called 'Empty now'.

Safari

  • To reload a page and bypass the cache:
    • either: Hold down the Command and Shift keys, and press R.
    • or: Hold down the Shift key and click the Reload toolbar button.
  • To completely clear the cache (see note above):
    • From the 'Safari' menu, choose 'Empty Cache...' or hold down the Option and Command keys and press E.
  • To disable the cache permanently (only do this if you are reasonably confident of what you are doing):
    • Quit Safari by choosing 'Quit' from the 'Safari' menu, or by holding down the Command key and pressing Q.
    • Open a Terminal window by double-clicking 'Terminal' within the 'Utilities' folder, which is within the 'Applications' folder.
    • Type the following commands, which are case-sensitive, each followed by the Enter key:
      • rm -rf ~/Library/Caches/Safari
      • touch ~/Library/Caches/Safari
    • Close the Terminal window by typing exit followed by the Enter key, or by holding down the Ctrl key and pressing D.
    • Relaunch Safari.

Server cache

The Wikimedia servers also cache a version of articles for visitors who are not logged in, because for those a webpage is always the same (not dependent on preferences) and need only be recreated by the software when the underlying text is edited.

This causes a few undesirable side-effects due to bugs in the software:

  • Text like 8 June, 07:21 UTC (using the variables {{CURRENTDAY}} {{CURRENTMONTHNAME}}, {{CURRENTTIME}}) are not updated when refreshing at the user side if one is not logged in.
  • The cache for redirected pages contains the rendered HTML-page of the target; this is not "invalidated" (recreated from the article text) when the target page is updated.

Forcing the server to re-render

The server can be told to refresh its cache of a page's contents using the action=purge URL parameter; this should be added in place of the action=edit or action=history appears when selecting those functions.

e.g. to purge this page, you would use Template:Fullurl::Wikipedia:Bypass your cache

Disabling page caching

As a last resort, you can adjust your user preferences to disable page caching entirely, using

Preferences→Misc settings→Disable page caching.

See Help:Preferences#Misc settings for more information about this option. Be forewarned: you will be using more bandwidth with this option set.cs:Wikipedie:Aktualizujte svou cache