Cookie Management in Chrome and Squid

March 5th, 2010

I've grown quite tired of having to clear out useless cookies from my browser. They are quite a pain in my opinion. I visit many websites only once, and thanks to Google Analytics, almost every website out there sets cookies.

In addition to being annoying to clear out, they also cause proxy caches to not cache their content some of the time.

So here's what I've done:

Many web applications require cookies, so I use the "Exceptions" feature to allow them to store cookies.

Unfortunately, many web applications also span across multiple sub-domains, and Google Chrome apparently doesn't support wildcard domain settings. More specifically, I have been unable to use this in my exceptions:

Usually that means any sub-domain of I also tried:


Neither worked. :-(

That means to access online banking services from or, I've had to add about six domains for each one. Not a fun exercise.

Thankfully, its possible to manually edit the Google Chrome preferences file on Debian. On my machine, its in ~/.config/google-chrome/Default/Preferences, and the file looks like its in JSON format:

         "": {
            "cookies": 1

UPDATE: I've been browsing the net for a few days with this setup. The first day or so were annoying, but now things are going along smoothly and I'm occasionally finding more sites I still need cookies for. Thankfully Chrome notifies me when the cookie is required by the same domain as the one I'm currently viewing, and provides a shortcut button to edit my cookie preferences. I'm really glad I decided to make this step!

Yearly Indexes: 2003 2004 2006 2007 2008 2009 2010 2011 2012 2013 2015 2019 2020 2022