Clear Internet Explorer cache when IE exits

by Wayne Maples [Published on 20 April 2004 / Last Updated on 20 April 2004]

Internet Explorer is notorious for consuming large amounts of disk space for cache. This can cause major problems with roaming profiles. With this hack, you can force IE to clean up its cache every time it's closed. You will save a lot of space and shouldn't see a performance problem unless you are in the habit of opening and closing IE multiple times during the day. This automatically clears the cache.

Hive: HKEY_CURRENT_USER
Key: Software\Microsoft\Windows\CurrentVersion\Internet Settings\Cache
Name: Persistent
Type: REG_DWORD
Value: 0 clear cache when IE exits
Value: 1 don't delete cached files

If you want to manually clear it ever so often :

  • Control Panel
  • Internet Options
  • General Tab
  • Delete Files
To control page reload options:
  • Control Panel
  • Internet Options
  • General Tab
  • Settings
The settings option is used to control how often IE checks for newer versions of cached pages:
  • Every visit to the page
  • Every time you start IE
  • Automatically
  • Never

See Also

Featured Links