[squid-users] Yet another store_id question HIT MISS

Omid Kosari omidkosari at yahoo.com
Sat Aug 20 14:10:16 UTC 2016


Amos Jeffries wrote
> On 19/08/2016 2:15 a.m., Omid Kosari wrote:
>> I was correct .
>> 
>> If one of following conditions happens then the mentioned urls will not
>> cache .
>> 
>> 1-in squid.conf have this line
>> acl storeiddomainregex dstdom_regex
>> ^igcdn(\-photos|\-videos)[a-z0-9\-]{0,9}\.akamaihd\.net$ 
>> 
> 
> How you use that ACL in your access rule logics is just as important as
> what it contains / matches.

In my first email i have pasted other parts of config .



Amos Jeffries wrote
>> 2-in storeid_db have this line
>> ^http:\/\/igcdn-.*\.akamaihd\.net/hphotos-ak-.*/(t5.*?)(?:\?|$)
>> http://instagramcdn.squid.internal/$1
> 
> 
> The pattern is malformed. Several parts of it are impossible to match,
> and just make it look complicated when its not.
> 
> It is better written as:
> 
> ^http:\/\/igcdn-[a-z0-9\-\.]+\.akamaihd\.net/hphotos-ak-[a-z0-9]+/(t5.*)
>   http://instagramcdn.squid.internal/$2

Thanks for suggest but this one seems incorrect . At least i think the $2
should be $1 . Apart from that i will use yours .




Amos Jeffries wrote
>> 
>> Now the problem is with my mentioned squid.conf and store_id rules , the
>> mentioned urls will not cache at all.Even if same url reopens many times
>> .
>> 
> 
> Store-ID does not force caching. All it does is provide Squid with a
> different ID under which the item would be stored *IF* (and only if) it
> would be stored normally.
> 
> I suggest removing the "ignore-no-store ignore-private" from your
> .squid.internal refresh_pattern. They trigger actions that break the
> image objects you actually want to store at that Store-ID location.
> 
> Amos

I have completely deleted that refresh_pattern line . But still same results
.




--
View this message in context: http://squid-web-proxy-cache.1019090.n4.nabble.com/Yet-another-store-id-question-HIT-MISS-tp4678972p4679068.html
Sent from the Squid - Users mailing list archive at Nabble.com.


More information about the squid-users mailing list