Use a Ramdisk to speed up Firefox and improve privacy
If you choose to delete the cache whenever Firefox exits it's gone, right? Wrong! Sure, it got deleted from the hard disk but every file recovery utility, like Recuva, can be used to restore the deleted cache.
This means that anyone with access may take a look at each and every website that you visited during your last browsing session despite the fact that you deleted it.
You could run a free disk space wiper like Eraser every time you close Firefox but that is not very practicable. A far better solution that would also speed up your browsing experience is to use a Ramdisk to store the Firefox cache.
Move Firefox's cache to a Ramdisk
Ramdisks, I hear you moan already that they are a relic of the past and not useful anymore. Wrong again..
Ramdisks are useful in many situations, especially if you have enough RAM so that the Ramdisk gets a decent amount of it. As a quick explanation, a Ramdisk is a temporary disk in your RAM. It has a drive letter and behaves like any hard drive or USB device that is connected to your computer.
The benefit is that it is faster than a hard drive because RAM is faster than hard drives and that everything that gets written to it will be gone once you restart the computer.
I'm going to explain how to create a Ramdisk and set the directory of the Firefox cache to it to increase security and speed.
Download SoftPerfekt Ram Disk from Major Geeks. The program is free to use and does not limit the number of disks that you can create or the amount of RAM you can assign to any one disk.
Install the application after you have downloaded it and run it once it is installed. Click on the plus icon in the program interface to create a new RAM disk
Select a size in Megabytes at the top. The program lists the amount of free RAM that you have and you should base the size on that number. I selected 8196 Megabytes on a PC with 32 Gigabytes of RAM.
Pick a drive letter next and change the file system from RAW to NTFS (or FAT32 if you need it). You may then add folders to the RAM disk, e.g. Temp or Firefox, that are created automatically by the application. Note that you are limited to root folders; the creation of subfolders is not supported.
Select advanced in the interface and add a volume label. Click ok and then ok again to complete the creation of the new RAM disk on the system.
You should see the RAM disk in Explorer right away. You can open it, move files to it, and interact with it as if it would be another drive on your PC.
Now open Firefox and enter about:config in the address bar. Confirm that you will be careful if this is your first time accessing the configuration page.
Search for the string browser.cache.disk.parent_directory.
If it is not found create it by right-clicking the empty space and selecting New > String from the menu. Paste the above string into the field and enter the value driveletter:\directory.
My Ramdisk has been created with the drive letter Z:\ which means that I used the value z:\firefox\ for the Firefox cache as I want it to be stored in the Firefox directory on the RAM disk to separate the cache from other caches on the disk.
Note: The preference Browser.cache.disk.enable must be set to true. It determines whether Firefox uses the disk cache. The preference Browser.cache.disk.capacity must be set to a positive integer as it determines the size of the disk cache.
Restart Firefox after creating the new entry and visit some websites. Now head over to your Ramdisk drive and check if the cache is being filled with the files of visited websites. If you followed this instruction it should. The cache will be deleted once you reboot or shut down your system.Advertisement