Search squid archive

Re: Does Squid support setting an expiration time less than one minute?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Thanks for the quick response. In my specific case, I want the http responses to be valid in the cache for a constant time period, I know it violate http standard though.  
Nginx supports setting caching time by "proxy_cache_valid 200 10s”, is there similar approaches in Squid?


On Oct 30, 2014, at 11:47 AM, Amos Jeffries <squid3@xxxxxxxxxxxxx> wrote:

> -----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-----
> _______________________________________________
> squid-users mailing list
> squid-users@xxxxxxxxxxxxxxxxxxxxx
> http://lists.squid-cache.org/listinfo/squid-users

_______________________________________________
squid-users mailing list
squid-users@xxxxxxxxxxxxxxxxxxxxx
http://lists.squid-cache.org/listinfo/squid-users





[Index of Archives]     [Linux Audio Users]     [Samba]     [Big List of Linux Books]     [Linux USB]     [Yosemite News]

  Powered by Linux