[squid-users] Filter squid cached files to multiple cache dirs

From: dxun <dxun77_at_gmail.com>
Date: Fri, 22 Aug 2014 19:34:38 -0700 (PDT)

I am currently setting up a small home network - I've chosen to go with squid
proxy and I am wondering if it is possible to setup a single squid instance
with multiple cache_dirs so that different files (more precisely, files with
different sizes) end up on different cache_dirs?

The reason for this is that I'll be running squid as a VM on a machine with
semi-cannibalized hardware. I have a small SSD (which I'm hoping to use for
caching small, dynamic, very transient files such as web pages, small pics
and such) and a large, slow HDD (which I'd like to use for caching larger,
static content such as windows updates, youtube transfers, large pics and
the like).

This is my first foray into squid and it's only a small network so I would
like to avoid introducing complexities such as multiple squid instances or
hierarchical caches. Ideally, there would be a way to specify some simple
set of criteria that would place the given file either in cache dir A or
cache dir B.

I have sifted through SquidFAQ but I found nothing similar mentioned there
so I may have missed something really elemental.

How could this be done? Is there a pattern people use to cater for such
cases? Is it even necessary/advisable?

--
View this message in context: http://squid-web-proxy-cache.1019090.n4.nabble.com/Filter-squid-cached-files-to-multiple-cache-dirs-tp4667347.html
Sent from the Squid - Users mailing list archive at Nabble.com.
Received on Sat Aug 23 2014 - 02:34:40 MDT

This archive was generated by hypermail 2.2.0 : Sat Aug 23 2014 - 12:00:06 MDT