Sunday, October 30, 2022

How to force disable cache in Google Chrome on macOS

Google Chrome (any version), makes impossible to disable disk cache. Such cache is unnecessary for most people, so here's how to force disable it: just create a symlink from each folder to null:

Google Chrome (stable):

rm -rf ~/Library/Caches/Google/Chrome
ln -nsf /dev/null ~/Library/Caches/Google/Chrome

Google Chrome Beta:

rm -rf ~"/Library/Caches/Google/Chrome Beta"
ln -nsf /dev/null ~"/Library/Caches/Google/Chrome Beta"

Google Chrome Dev:

rm -rf ~"/Library/Caches/Google/Chrome Dev"
ln -nsf /dev/null ~"/Library/Caches/Google/Chrome Dev"

Google Chrome Canary:

rm -rf ~"/Library/Caches/Google/Chrome Canary"
ln -nsf /dev/null ~"/Library/Caches/Google/Chrome Canary"

These are the commands for Google Chrome (Stable), but similarly could be done for Google Chrome Beta, Google Chrome Dev and Google Chrome Canary (Nightly).

This is currently working on macOS 13.0 Ventura.

Links

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.