Your web browser stores copies of images, scripts, and stylesheets in a cache folder so pages load faster on repeat visits. Normally this cache lives on your SSD or HDD. By moving it to a RAM disk, you get two benefits: cached data loads at memory speed, and your SSD stops receiving the constant small writes that browser cache generates. This is one of the most practical and effective uses of a RAM disk in Windows 11.
This guide shows you how to create a RAM disk with Qiling Disk Master and then point Google Chrome, Microsoft Edge, and Mozilla Firefox at it. The steps for each browser are different, so follow the section that matches the browser you use.
Browser cache is a perfect match for a RAM disk because of how it behaves:
The benefits you will notice:
The only downside is that the first visit to a page after a reboot is slightly slower, because the cache is empty. This is a minor trade-off for most users.
Before moving any browser cache, you need a working RAM disk. If you have not created one yet, follow these quick steps using Qiling Disk Master.
Step 1. Download and install Qiling Disk Master.
Step 2. Open Qiling Disk Master and go to Tools and Utilities.
Step 3. Click Create ramdisk.
Step 4. Set the size to 2 GB (enough for most browser caches) and choose a drive letter such as R:.
Step 5. Choose NTFS as the file system and make sure auto-mount at startup is enabled.
Step 6. Click Create and confirm the new drive appears in File Explorer.
Step 7. On the RAM disk, create a folder for the browser cache, for example R:\ChromeCache or R:\BrowserCache.
For a complete walkthrough of creating a RAM disk, see How to Create a RAM Disk in Windows 11.
Chrome does not have a built-in setting to change the cache location, so you need to add a command-line switch to the Chrome shortcut.
Step 1. Close Chrome completely. Right-click the Chrome icon on the taskbar and choose Close window, or use Task Manager to end all Chrome processes.
Step 2. Find the Chrome shortcut. Right-click the Chrome icon on your desktop or in the Start menu and choose Open file location. This opens the folder containing the shortcut.
Step 3. Edit the shortcut properties. Right-click the Chrome shortcut and choose Properties.
Step 4. Add the cache switch. In the Target field, the text ends with chrome.exe. Click at the very end of that line, press Space, and add:
--disk-cache-dir="R:\ChromeCache" --disk-cache-size=1048576000
The full Target should look something like this:
"C:\Program Files\Google\Chrome\Application\chrome.exe" --disk-cache-dir="R:\ChromeCache" --disk-cache-size=1048576000
The --disk-cache-size value is in bytes. 1048576000 bytes equals 1000 MB. Adjust it to fit your RAM disk size.
Step 5. Apply and launch. Click Apply and then OK. Open Chrome using this shortcut. The cache now writes to the RAM disk.
Step 6. Verify. Visit a few websites, then open File Explorer and check that files appear in R:\ChromeCache. If the folder fills up, Chrome is using the new cache location.
Microsoft Edge is based on Chromium, so the process is nearly identical to Chrome.
Step 1. Close Edge completely. End all Edge processes in Task Manager.
Step 2. Right-click the Edge shortcut and choose Open file location.
Step 3. Right-click the Edge shortcut and choose Properties.
Step 4. In the Target field, go to the end of the line after msedge.exe, press Space, and add:
--disk-cache-dir="R:\EdgeCache" --disk-cache-size=1048576000
The full Target should look like:
"C:\Program Files (x86)\Microsoft\Edge\Application\msedge.exe" --disk-cache-dir="R:\EdgeCache" --disk-cache-size=1048576000
Step 5. Click Apply and OK.
Step 6. Launch Edge from this shortcut and browse a few sites. Check that R:\EdgeCache starts filling with files.
Firefox has a built-in setting for the cache location, so you do not need to modify shortcuts. You change it from within Firefox's configuration page.
Step 1. Open Firefox's configuration editor. Type about:config in the address bar and press Enter. Click Accept the Risk and Continue if a warning appears.
Step 2. Create a new preference. In the search box at the top, type browser.cache.disk.parent_directory. If it does not exist, click the + button on the right to create a new preference.
Step 3. Set the cache path. When prompted, choose String as the type and enter the path to your RAM disk folder, for example R:\FirefoxCache. Click the checkmark to save.
Step 4. Enable disk caching. Search for browser.cache.disk.enable and make sure it is set to true.
Step 5. (Optional) Limit cache size. Search for browser.cache.disk.capacity. The value is in kilobytes. For 1 GB, enter 1048576. This prevents the cache from exceeding your RAM disk size.
Step 6. Restart Firefox. Close and reopen Firefox for the changes to take effect.
Step 7. Verify. Browse a few sites and check that files appear in R:\FirefoxCache.
Because the RAM disk is recreated on every boot, the cache folders on it start empty. That is the intended behavior. However, the folders themselves need to exist when the browser launches, otherwise some browsers may fail to create them or fall back to the default location.
To make sure the cache folders exist after every reboot, create a small batch script that runs at startup.
Step 1. Open Notepad and paste the following lines:
@echo offif not exist R:\ChromeCache mkdir R:\ChromeCacheif not exist R:\EdgeCache mkdir R:\EdgeCacheif not exist R:\FirefoxCache mkdir R:\FirefoxCache
Step 2. Save the file as ramdisk-folders.bat in a permanent location, such as C:\Scripts\.
Step 3. Press Win + R, type shell:startup, and press Enter. This opens the Startup folder.
Step 4. Drag a shortcut to your batch file into the Startup folder. Windows now runs the script at every login, ensuring the cache folders exist.
Qiling Disk Master mounts the RAM disk very early in the boot process, so the drive is ready by the time this script runs.
The cache folder is empty after browsing.
Make sure you launched the browser from the modified shortcut (Chrome/Edge) or that the about:config setting is correct (Firefox). Also confirm the RAM disk drive letter matches the path you set.
Chrome ignores the shortcut switch.
Chrome sometimes resets shortcuts or launches from pinned taskbar icons that do not use your modified shortcut. Unpin the old icon, then pin the modified shortcut to the taskbar.
The RAM disk is full.
Either increase the RAM disk size or reduce the cache size limit in the browser settings. A 2 GB RAM disk is enough for most users; heavy browsing may need 4 GB.
The browser says it cannot write to the cache.
Confirm the cache folder exists on the RAM disk and that you have permission to write to it. Running the startup batch script usually fixes this.
Browsing is slower after reboot.
This is normal. The cache is empty after every reboot, so the first visit to each site reloads everything from the internet. After a few minutes of browsing, the cache fills up and speeds return to normal.
Moving browser cache is safe, but if you are also editing shortcuts or Firefox preferences, a backup protects your system. Qiling Disk Master creates a full Windows image you can restore from if anything goes wrong.
Step 1. Install and open Qiling Disk Master. On the home screen, open "Backup and Recovery" and choose "System Backup". This option automatically includes Windows and the hidden boot partitions, so you do not have to select them one by one.

Step 2. Check the source. The disk where Windows is installed and its system partitions are already ticked for you. If you only need your personal documents, run a separate "File Backup" task instead.

Step 3. Click the destination box and choose where the image should be saved. Use an external HDD or SSD, a NAS, or any drive other than the one Windows is installed on, and make sure it has enough free space.

Step 4. Review the task summary and click "Proceed". Wait until the progress bar reaches 100%. Do not unplug the drive or turn off the PC while the backup is running.

Step 1. Open Qiling Disk Master again, go to "Backup and Recovery", and select the recovery option. Your backup images are listed, so pick the one you created before the changes began.

Step 2. Choose the target disk or partition. Normally you restore to the original system disk. If the drive was replaced, select the new disk instead, and the restore rebuilds Windows together with its boot partitions.

Step 3. Preview the restore plan, click "Proceed", and confirm the warning. The PC restarts to finish the job, and Windows comes back exactly as it was on the day the image was created, with your files and programs intact.

Moving your browser cache to a RAM disk speeds up repeat page loads and protects your SSD from unnecessary writes. Create a 2 GB RAM disk with Qiling Disk Master, then point your browser at it: for Chrome and Edge, add --disk-cache-dir="R:\Cache" to the shortcut Target; for Firefox, set browser.cache.disk.parent_directory in about:config. Add a startup batch script to recreate the cache folders after every reboot, since the RAM disk starts empty. The first visit after a reboot is slightly slower, but after that browsing feels snappier and your SSD lasts longer.
Protect your PC with Qiling Backup—create a system image before your next round of settings changes.
For more Windows 11 performance guides, see How to Create a RAM Disk in Windows 11, Windows 11 Fast Cache, Speed Up Windows 11 with RAM and SSD Cache, Fast Cache Best Practices, and Windows 11 Guide.