Possible to redirect sandboxed Chrome cache folder?

I am trying to minimize the writes to my SSD and so would like to create a RAM drive and configure Chrome to store its browser cache files on this RAM drive. For Chrome that is not in a sandbox, it is simply a matter of adding the following string to the shortcut icon that launches the browser:


Could someone tell me whether it is possible to redirect where sandboxed Chrome stores its cache files? I see that by default they are being store in the following path:

C:\VTRoot\HarddiskVolume2\Users\Robert\AppData\Local\Google\Chrome\User Data\Default\Cache

FYI, Firefox can be configured to use only RAM for its cache (as opposed to have to artificially creating a RAM drive as with Chrome), and because this feature is native to the browser, I can configure it to work with the sandboxed version launched out of the Comodo widget. However, I would also like to get Chrome to emulate this through a RAM drive.

To the best of my knowledge this is currently not possible, however there are wishes for the ability to change the location of the VTRoot folder as well as the ability to make all data be stored in the RAM instead of on disc, however these haven’t been implemented yet and they may never be.

Edit: A possible workaround would be to set up D:\Temp\ChromeCache to the exclusions meaning that when a sandboxed process tries to write to it, the data won’t be written to the VTRoot but instead the real disc, which in this case would be a RAM disc. I’m not sure if this would work but even if it does, excluding the folder could possibly be a security issue, all sandboxed applications would be allowed to write to it.

To set the folder up for exclusions:

[ol]- Open Advanced Settings

  • Expand Security Settings
  • Expand Defense+
  • Expand Sandbox
  • Click Sandbox Settings
  • Find the option Do not virtualize access to the specified files/folders and make sure it’s ticked
  • Click “the specified files/folders
  • Right-click in the white area in the new window and click Add > Folders
  • Find the folder in question and highlight it then click OK
  • Click OK on all windows
  • I suggest resetting the sandbox before testing it again, otherwise you’ll probably still have some sandboxed files in the VTRoot folder that may interfere.[/ol]