On 12/10/2013 1:46 a.m., Calode wrote:
> Please correct me if I am wrong !?
> the Cache-Control is : public, max-age=21600
> if I understand correctly the refresh patterns for such a case , it is
> to be handled with : ignore-auth and override-expire
There is no auth to begin with.
Public has no meaning on these responses.
The HTTP/1.0 Expires: timestamp check is skipped (it always says +6hrs
from now on every fresh request anyway), leaving Squid with only the
max-age=21600 value to work from.
> for a total of example : refresh_pattern ^.* 1080 80% 79900
> ignore-auth override-expire
> and I am still getting : TCP_MISS/200 14176 GET
> http://i1.ytimg.com/vi/pMr5W4bCP8s/mqdefault.jpg -
> HIER_DIRECT/173.194.67.102 image/jpeg
>
Good. Shows it is probably not your refresh pattern at all causing the
problem.
Where else in the config do you have anything mentioning cache or object
limitations (size etc)?
Amos
>
> calode_at_gmail.com
> > On 12/10/2013 1:05 a.m., Calode wrote:
> >> Hi Guys ,
> >>
> >> I am testing squid 3.4.0.2 on some jpg from ytimg ! , and it
> >> seems I can't make squid cache .
> >> no matter what I tried it just doesn't cache it !!! . my conf :
> >> acl = > acl rewritedoms url_regex -i \.ytimg\.com.*.(jpg|png) I
> >> tried a bunch of refresh pattern ... refresh => refresh_pattern
> >> \.ytimg\.squid\.internal\/.*(jpg|png) 172800 90% 172800
> >> override-expire reload-into-ims ignore-auth ignore-reload ignore-
> >> private store-stale max-stale=7776000
> >>
> >> or refresh =>refresh_pattern ^.* 1080 80% 79900 override-expire
> >> override-lastmod reload-into-ims ignore-reload ignore-no-store
> >> ignore-must-revalidate ignore-private ignore-auth refresh-ims
> >> store-stale
> >>
> >> and even => refresh_pattern ^http://(youtube|ytimg|vimeo|[a-zA-Z0-
> >> 9\-]+)\.squid\.internal/.* 10080 80% 79900 ignore-auth override-
> >> lastmod override-expire ignore-reload ignore-must-revalidate
> >> ignore-private
> >>
> >> And it's still a TCP_MISS !?! can't figure out why !!
> >>
> >> my store-id code => } elsif ($x =~ m/^http:\/\/.*
> >> \.ytimg\.com\/(.+?)\/(.+?)\.(jpg)/) {
> >> $out="http://ytimg.squid.internal/" . $1 . $2 . "." . $3 ;
> >>
> >> streo-id logging enabled : in : 0
> >>http://i1.ytimg.com/vi/pMr5W4bCP8s/mqdefault.jpg 172.16.35.22/- -
> >> GET myip=173.194.67.139 myport=80
> >> out: 0 OK store-
> >> id=http://ytimg.squid.internal/vipMr5W4bCP8s/mqdefault.jpg
> >>
> >> I even changed debug mode into ALL,9 , read the log so many times
> >> and I can't seem to figure out what is wrong !
> >>
> >
> > Well. That image is cacheable for up to 6hrs according to HTTP. So
> > the default settings of Squid will be to cache it. At best your
> > rules are causing it to become non-cacheable somehow (I suspect the
> > ignore-lastmod).
> >
> > Amos
Received on Fri Oct 11 2013 - 13:34:22 MDT
This archive was generated by hypermail 2.2.0 : Sat Oct 12 2013 - 12:00:05 MDT