Thursday, January 5, 2012

Change mozilla firefox cache directory

How to change the Mozilla Firefox cache folder?

Sometimes you may need to change firefox cache folder location. But in firefox browser, this can't be do easily. You may have some knowledge to do it. Following example show you how to do this.
Internet browser use cache folder for fast page loads. It can help the application's performance. All internet Browsers temporary stored downloaded contents in this cache folder. Contents in the cache folder changes frequently. So It is good idea to use a RAM Drive to store those contents. Then it will help to fast web page views and reduce the read/write to the hard disk.. Because browser can access RAM faster than the physical disk.


FireFox stores its all preference in a Java Script file called "prefs.js". You can see this file in firefox profile folder which is in your AppData Folder. It will be like C:\Users\User_Name\AppData\Roaming\Mozilla\Firefox\Profiles\il3yfhy9.default\.




Steps to change the Mozilla FireFox cache location

  1. Open Mozilla Firefox Internet browser and type about:config in the address bar. Then press enter.


  2. Then FireFox tells you changing advanced settings can be harmful to the stability, security, and performance of the application. To continue click on "I'll be careful, I promise!" button.
  3. It will open Mozilla Firefox's Advanced Setting Window for you.


  4. In the filter section start typing browser.cache. Then it will show you the all cache related settings of the FireFox Internet Browser. Check the variable " browser.cache.disk.parent_directory " exists among all listed settings. By default this variable does not exists.
  5. If the variable " browser.cache.disk.parent_directory " does not exist in your browser settings, you have to manually add that variable and assign a suitable value for it. Lets see how to do it.
  6. Right click on the free space on the settings list and click on New->String from the popup menu.


  7. Then it will let you to add new preference to the FireFox Settings. Enter "browser.cache.disk.parent_directory" as the preference name and hit enter.


  8. Then FireFox will ask you to enter a value for your variable. Here you have to type your new cache location. That means the folder where do you want to store browser's temporary files. Type the cache location and press enter.


  9. After entering new variable you must restart the FireFox browser to take effect. After that you can see the temporary files and folders created in the new cache folder that you have mentioned above.

* After adding new variable, you must restart the FireFox to take the effect.
* Please be careful what you are doing with these advance settings. Don't change any variable if you don't know what it is to be use for.

No comments:

Post a Comment