Search squid archive

Re: Yet another store_id question HIT MISS

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

 



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256
 


21.08.2016 19:23, Eliezer Croitoru пишет:
> 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
I suggests here is required efficiency agains accuracy. ".*" in some
cases requires less steps.
>
>
> Eliezer
>
> ----
> Eliezer Croitoru
> Linux System Administrator
> Mobile: +972-5-28704261
> Email: eliezer@xxxxxxxxxxxx
>
>
> -----Original Message-----
> From: squid-users [mailto:squid-users-bounces@xxxxxxxxxxxxxxxxxxxxx]
On Behalf Of Omid Kosari
> Sent: Saturday, August 20, 2016 4:41 PM
> To: squid-users@xxxxxxxxxxxxxxxxxxxxx
> Subject: Re:  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@xxxxxxxxxxxxxxxxxxxxx
> http://lists.squid-cache.org/listinfo/squid-users
>
> _______________________________________________
> squid-users mailing list
> squid-users@xxxxxxxxxxxxxxxxxxxxx
> http://lists.squid-cache.org/listinfo/squid-users

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2
 
iQEcBAEBCAAGBQJXudvGAAoJENNXIZxhPexGO8EH/2aZEapcMeO3q4MOeP2/hVz4
/8hc3xwjai72Uk0hQ2LWt/jB34GEs7FUPYi3i51nKpI6+qYHcvDbGwTGn6DXdTdV
8VSR/NIyrDTNSBKoZDNvkyWDm45H4W0HYwRRrG0XMVagyZpDFj8JzNwt6iXvlJdY
mSHkxP5wslbhpXG/+cD4nqKEjLGBvSjr+7Jp4/py4D1KXd8BFsg1wh78wwCiAUUp
WnCVsdvsHIW3TDUNYQuQE8d4ONktklm6aRo62McYr3VGnb4w0dI5IpnXKnDOzfUP
7rIq0kfykWkQSn/MN5ibz/AInrxyCe7Tp7TFiufbr+aFPFbltmA6obBW+qRxU24=
=dxxA
-----END PGP SIGNATURE-----

Attachment: 0x613DEC46.asc
Description: application/pgp-keys

_______________________________________________
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