> > I was trying to go direct in case of videos (in a reverse proxy setup):
> > acl askdirect req_mime_type -i video/x-flv
>
> This is not what you expect it to be. req_mime_type is the mime type of
> the request, not the response.
>
> The response mime type is only known when the response from the server
> is seen (after connecting and sending the request).
>
> What you can do is to use urlpath_regex and match on common patterns for
> the downloads you want Squid to skip the siblings on.
>
> acl askdirect urlpath_regex -i \.flv$
> always_direct askdirect
>
> additionally, keep in mind that always_direct only changes how Squid
> uses peers (makes it not use any peers), not the cache. To tell Squid to
> not cache the reply see the cache directive.
Oops, indeed.
But, as it ignores all peers, it also ignores my parent lines (apaches listening on a specific port).
Maybe I could use something like this (squid1 example)?
acl askdirect urlpath_regex -i \.flv$
cache_peer_access squid2 deny askdirect
cache_peer_access squid3 deny askdirect
cache_peer_access squid4 deny askdirect
Or, would that work?
acl askdirect urlpath_regex -i \.flv$
cache_peer_access !apache deny askdirect
At least the cache deny will help.
Thx,
JD
Received on Tue Jul 22 2008 - 09:46:46 MDT
This archive was generated by hypermail 2.2.0 : Wed Jul 23 2008 - 12:00:05 MDT