[squid-users] Yet another store_id question HIT MISS
Eliezer Croitoru
eliezer at ngtech.co.il
Sun Aug 21 13:23:04 UTC 2016
Well it's pretty simple, I have used squd 4.0.13 with default settings and the rules you provided ie:
squid.conf:
store_id_program /usr/lib64/squid/storeid_file_rewrite /etc/squid/storeid-rules
store_id_children 40 startup=10 idle=5 concurrency=0
store_id_access allow GET
store_id_access deny all
/etc/squid/storeid-rules:
^http:\/\/igcdn-.*\.akamaihd\.net/hphotos-ak-.*/(t5.*?)(?:\?|$) http://instagramcdn.squid.internal/$1
But I am not sure how you decided on the StoreID structure. I am pretty sure you can replace the ".*" with a much more accurate rule such as in:
^http:\/\/igcdn-(photos|videos)-([a-z]+)-a\.akamaihd\.net/hphotos-ak-([a-z0-9]+)/(t5[\.\-\_\/a-z0-9]+?)(?:\?|$) http://instagramcdn.squid.internal/$4
Eliezer
----
Eliezer Croitoru
Linux System Administrator
Mobile: +972-5-28704261
Email: eliezer at ngtech.co.il
-----Original Message-----
From: squid-users [mailto:squid-users-bounces at lists.squid-cache.org] On Behalf Of Omid Kosari
Sent: Saturday, August 20, 2016 4:41 PM
To: squid-users at lists.squid-cache.org
Subject: Re: [squid-users] Yet another store_id question HIT MISS
I have also tested with several browsers, PCs etc . Also i have disabled
every refresh pattern except default squid rules as like as yours . Same
result .
The only way to get hits are the way i mentioned in
http://squid-web-proxy-cache.1019090.n4.nabble.com/Yet-another-store-id-question-HIT-MISS-tp4678972p4679025.html
Do you tested when enabled my storeid config (mentioned in my first email )
was there ?
--
View this message in context: http://squid-web-proxy-cache.1019090.n4.nabble.com/Yet-another-store-id-question-HIT-MISS-tp4678972p4679067.html
Sent from the Squid - Users mailing list archive at Nabble.com.
_______________________________________________
squid-users mailing list
squid-users at lists.squid-cache.org
http://lists.squid-cache.org/listinfo/squid-users
More information about the squid-users
mailing list