Search squid archive

Re: always_direct

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

 



> > 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


      


[Index of Archives]     [Linux Audio Users]     [Samba]     [Big List of Linux Books]     [Linux USB]     [Yosemite News]

  Powered by Linux