Sent from Yahoo Mail for iPhone
On Friday, September 22, 2017, 9:03 AM, squid-users-request@xxxxxxxxxxxxxxxxxxxxx wrote:
Send squid-users mailing list submissions toTo subscribe or unsubscribe via the World Wide Web, visitor, via email, send a message with subject or body 'help' toYou can reach the person managing the list atWhen replying, please edit your Subject line so it is more specificthan "Re: Contents of squid-users digest..."Today's Topics:1. Re: When the redirect [301, 302, 307] is cached by Squid?(Amos Jeffries)2. time error problem (Alex Gutiérrez Martínez)3. Re: When the redirect [301, 302, 307] is cached by Squid?(kAja Ziegler)4. delay pool not workin (Alex Gutiérrez Martínez)5. Re: time error problem (Amos Jeffries)6. Re: delay pool not workin (Amos Jeffries)----------------------------------------------------------------------Message: 1Date: Fri, 22 Sep 2017 00:24:11 +1200From: Amos Jeffries <squid3@xxxxxxxxxxxxx>Subject: Re: When the redirect [301, 302, 307] is cachedby Squid?Message-ID: <5d9406a2-0192-de83-a2fc-2ca577b6c07b@xxxxxxxxxxxxx>Content-Type: text/plain; charset=utf-8; format=flowedOn 21/09/17 22:16, kAja Ziegler wrote:> Thats what the "must-revalidate" means. It should work better with> just max-age or Expires header - and with a longer value than 60 sec> since this is supposed to be a *permanent* situation.>>> As I know "must-revalidate" mean "refuse to return stale responses to> the user even if they say that stale responses are acceptable" - cached> object must be revalidated.>> Max-age=60 was only used for testing.>> The results of my testing:>> - redirect 302 or 307 - to be cached needs Cache-Control max-age > 0 or> Expires "access plus 1 seconds"> - redirect 301 - to be cached needs Cache-Control max-age > 60 or> Expires "access plus 61 seconds">There is no >60 need on the 301. Just me suggesting that 60sec is tooshort caching time for a _permanent_ thing.> This is strange because I thought that 301 is always cached without> Cache-Control or Expires headers. And I can't find any information in> the documentation which describes such behaviour.It should be, so long as it is fresh so that means it does depend onrefresh_pattern saying it is fresh when no controls are present.Amos------------------------------Message: 2Date: Thu, 21 Sep 2017 08:50:57 -0400From: Alex Gutiérrez Martínez <alex@xxxxxxxxxxxxx>Subject: time error problemMessage-ID: <5a4045a0-b19f-3fd0-677d-fa6f2bdb8ba8@xxxxxxxxxxxxx>Content-Type: text/plain; charset="utf-8"; Format="flowed"Hello everyone, i have an ubuntu 14.04 configured for time zone "Havana"on meridian -5. But when i get an error page on my squid, for whateverreason, it puts the time zone as if it were in meridian 0. Any idea why?Thanks in advance--Saludos CordialesLic. Alex Gutiérrez Martínez-------------- next part --------------An HTML attachment was scrubbed...------------------------------Message: 3Date: Thu, 21 Sep 2017 15:16:04 +0200From: kAja Ziegler <ziegleka@xxxxxxxxx>Subject: Re: When the redirect [301, 302, 307] is cachedby Squid?Message-ID:Content-Type: text/plain; charset="utf-8">> There is no >60 need on the 301. Just me suggesting that 60sec is too> short caching time for a _permanent_ thing.There is - may be some misconfiguration in my squid.conf.If I set max-age to values from interval <1;60> only 302 and 307 redirectswere cached (HIT) and no 301. When I increased the max-age value to 61 thenthe 301 redirect was cached too.But you are right, that the cause of no-caching the 301 redirect is the minvalue of:refresh_pattern . 0 20% 4320But for redirects 302 and 307 the above-mentioned refresh_pattern is ignored.My source server is Apache and the corresponding configuration is:RewriteRule /img301.jpg /img.svg [R=301,L,E=rcache:1]RewriteRule /img302.jpg /img.svg [R=302,L,E=rcache:1]RewriteRule /img307.jpg /img.svg [R=307,L,E=rcache:1]Header always set Cache-Control "max-age=3" env=rcachezigiOn Thu, Sep 21, 2017 at 2:24 PM, Amos Jeffries <squid3@xxxxxxxxxxxxx> wrote:> On 21/09/17 22:16, kAja Ziegler wrote:>>> Thats what the "must-revalidate" means. It should work better with>> just max-age or Expires header - and with a longer value than 60 sec>> since this is supposed to be a *permanent* situation.>>>>>> As I know "must-revalidate" mean "refuse to return stale responses to the>> user even if they say that stale responses are acceptable" - cached object>> must be revalidated.>>>> Max-age=60 was only used for testing.>>>> The results of my testing:>>>> - redirect 302 or 307 - to be cached needs Cache-Control max-age > 0 or>> Expires "access plus 1 seconds">> - redirect 301 - to be cached needs Cache-Control max-age > 60 or Expires>> "access plus 61 seconds">>>>> There is no >60 need on the 301. Just me suggesting that 60sec is too> short caching time for a _permanent_ thing.>> This is strange because I thought that 301 is always cached without>> Cache-Control or Expires headers. And I can't find any information in the>> documentation which describes such behaviour.>>>> It should be, so long as it is fresh so that means it does depend on> refresh_pattern saying it is fresh when no controls are present.>> Amos> _______________________________________________> squid-users mailing list>-------------- next part --------------An HTML attachment was scrubbed...------------------------------Message: 4Date: Thu, 21 Sep 2017 17:07:28 -0400From: Alex Gutiérrez Martínez <alex@xxxxxxxxxxxxx>Subject: delay pool not workinMessage-ID: <0e306c67-faed-9b4d-56e3-14f546e626a8@xxxxxxxxxxxxx>Content-Type: text/plain; charset="utf-8"; Format="flowed"Could someone be so kind to explain to me why my rules do not work onmy delays pools?i got this acl "lento", in spanish means slowacl lento url_regex -i "/etc/squid3/bloqueo/lento"his format is the next:.youtube.com.facebook.comMy delay config is the next:################################################################################Delay################################################################################delay_pools 3#Canal 1 extensiones.delay_class 1 2delay_parameters 1 32768/32768 32768/32768delay_access 1 deny !sociales lento navegacion !extensiones#delay_access 1 deny all#Canal 2 para usuarios.delay_class 2 2delay_parameters 2 65536/65536 32768/32768delay_access 2 deny !navegacion extensiones lento sociales#delay_access 2 deny all#Canal 2 para usuarios.delay_class 3 1delay_parameters 3 16384/16384delay_access 3 deny extensiones navegacion sociales !lento#delay_access 2 deny allmy problem is simple, on my sqstat show the url's of "lento" with 0 ondelay parameter, i do not understand why it happens. the program shouldshow 3thanks in advance--Saludos CordialesLic. Alex Gutiérrez MartínezTel. +53 7 2710327-------------- next part --------------An HTML attachment was scrubbed...------------------------------Message: 5Date: Fri, 22 Sep 2017 12:59:12 +1200From: Amos Jeffries <squid3@xxxxxxxxxxxxx>Subject: Re: time error problemMessage-ID: <5a5eb457-9dd4-1fef-1c34-8442179c6ed4@xxxxxxxxxxxxx>Content-Type: text/plain; charset=utf-8; format=flowedOn 22/09/17 00:50, Alex Gutiérrez Martínez wrote:> Hello everyone, i have an ubuntu 14.04 configured for time zone "Havana"> on meridian -5. But when i get an error page on my squid, for whatever> reason, it puts the time zone as if it were in meridian 0. Any idea why?>Because the Internet runs on UTC not your local timezone.Error pages are sent to anyone trying to access your proxy regardless oflocation (eg denying external access through it).Amos------------------------------Message: 6Date: Fri, 22 Sep 2017 13:03:49 +1200From: Amos Jeffries <squid3@xxxxxxxxxxxxx>Subject: Re: delay pool not workinMessage-ID: <7b5d9b7d-7280-1cd6-4d8c-3257c267c942@xxxxxxxxxxxxx>Content-Type: text/plain; charset=utf-8; format=flowedOn 22/09/17 09:07, Alex Gutiérrez Martínez wrote:> Could someone be so kind to explain to me why my rules do not work on> my delays pools?>>> i got this acl "lento", in spanish means slow>> acl lento url_regex -i "/etc/squid3/bloqueo/lento">> his format is the next:>>> .youtube.com>> .facebook.com>First problem: you are putting domains in dstdomain format into afull-URL regex ACL.Use dstdomain ACL type for these. Much faster.>> My delay config is the next:>>> ###############################################################################> #Delay#> ###############################################################################> delay_pools 3>> #Canal 1 extensiones.> delay_class 1 2> delay_parameters 1 32768/32768 32768/32768> delay_access 1 deny !sociales lento navegacion !extensiones> #delay_access 1 deny all>> #Canal 2 para usuarios.> delay_class 2 2> delay_parameters 2 65536/65536 32768/32768> delay_access 2 deny !navegacion extensiones lento sociales> #delay_access 2 deny all>> #Canal 2 para usuarios.> delay_class 3 1> delay_parameters 3 16384/16384> delay_access 3 deny extensiones navegacion sociales !lento> #delay_access 2 deny all>>Second problem: deny, deny all. Nothing allowed to use these pools.Amos------------------------------Subject: Digest Footer_______________________________________________squid-users mailing list------------------------------End of squid-users Digest, Vol 37, Issue 50*******************************************
_______________________________________________ squid-users mailing list squid-users@xxxxxxxxxxxxxxxxxxxxx http://lists.squid-cache.org/listinfo/squid-users