[squid-users] Does Squid support setting an expiration time less than one minute?

Amos Jeffries squid3 at treenet.co.nz
Thu Oct 30 03:47:56 UTC 2014


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 30/10/2014 4:27 p.m., Niu Licheng wrote:
> Hi guys,
> 
> I’ve been using Squid as a proxy cache. In my specific case, I need
> to set cache expiry time to 10 seconds. I tried refresh_pattern,
> but I found refresh_pattern only supports setting expiry time in
> minute unites. E.g.	refresh_pattern   ^http:   1  0%  1
> override-expire
> 
> Is there any ways to configure an expiry time in second unites?

No. The server is supposed to be setting correct expiry and cache
controls.

The refresh_pattern you are trying to use above defeats the purpose of
having the proxy caching at all. Might as well not cache.

Amos

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.22 (MingW32)

iQEcBAEBAgAGBQJUUbTsAAoJELJo5wb/XPRjp34IANwu6A4/tyu1kAfkNToWPPhj
fdyR9LTglBMno5xCy57vAzazXV87Wa683vmkp2kHBrjblUi8SB8Ya6tAh8WNDvjW
pMheTH4Gk2Nq7Gwm0B5q7QJriOwvHESklhr/smfKbVmrwzcfZVx0Pz2TRIIf/OmU
ti2ncusd6SQKZdbJJae/DZ51ZMv+LR2t1qSaEsAsxRu+KwePQCLBluKxp9odcXPT
r5YIub+fBlJ5fGFwk9HukSU2vd4y69713PfgTreS0mVRsZcgyDYc2biygebV7rzx
gPPeUQX04pjUGjFo+oj979/b7qmvfgMz4QRU9eIqfFRki1o35WiUAKeXfARV9b4=
=6Ii+
-----END PGP SIGNATURE-----


More information about the squid-users mailing list