Web notes
How to disable Chrome caching on Ubuntu
Turning off the cache in Chrome developer tools only lasts while the panel is open. This launcher change makes the cache genuinely tiny on Ubuntu.
I bought an SSD for my laptop and wanted to reduce write I/O. Less writing is a good idea even on a mechanical disk, and the system feels faster for it.
I also wanted to turn off browser caching. Chrome has no setting in the interface for that. The usual suggestion is the cache toggle in the developer tools, but it only applies while the toolbox is open. I wanted a real change.
The real fix
Edit /usr/share/gnome-control-center/default-apps/chromium-browser.xml and add the --cache-disk-size=1 argument to the command tag:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE default-apps SYSTEM "gnome-da-list.dtd">
<default-apps>
<web-browsers>
<web-browser>
<name>Chromium</name>
<executable>chromium-browser</executable>
<command>chromium-browser --cache-disk-size=1 %s</command>
<icon-name>chromium-browser</icon-name>
<run-in-terminal>false</run-in-terminal>
<netscape-remote>false</netscape-remote>
<!--
<tab-command>false</tab-command>
<win-command>false</win-command>
-->
</web-browser>
</web-browsers>
</default-apps>
When you launch Chromium from the icon, the cache is limited to one byte, which is effectively disabled. A value of 0 means no limit, so keep the value at 1.
This is a blunt tool for a specific reason. For normal browsing, leave the cache alone.