Search squid archive

Re: Re: Youtube Changes

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

 



On 23/04/2013 6:15 a.m., babajaga wrote:
YES: Very important:

READ IT ! :-)

How about updating the Squid wiki pages with this recent information? reading four pages of dense regex patterns with the odd word or two of documentation in the middle is not an great way to spend the evening.

http://wiki.squid-cache.org/ConfigExamples/DynamicContent/YouTube is a collaborative effort between the people interested fixing YT cacheability problems.

Please also correct those squid.conf settings which are documented. The regex patterns added to squid.conf do not need .* or .*$ on the ends.

        # acl yutub url_regex -i .*youtube\.com\/.*$
        # acl yutub url_regex -i .*youtu\.be\/.*$

  acl yutub url_regex -i youtu(be\.com|\.be)\/

or maybe even:
  acl yutub dstdomain .youtube.com .youtu.be

# acl redirec urlpath_regex -i .*&redirect_counter=1&cms_redirect=yes
        # acl redirec urlpath_regex -i .*&ir=1&rr=12

acl redirec urlpath_regex -i &redirect_counter=1&cms_redirect=yes &ir=1&rr=12

# acl reddeny url_regex -i c\.youtube\.com\/videoplayback.*redirect_counter=1.*$ # acl reddeny url_regex -i c\.youtube\.com\/videoplayback.*cms_redirect=yes.*$

acl reddeny url_regex -i c\.youtube\.com\/videoplayback.*(redirect_counter=1|cms_redirect=yes)

Amos




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

  Powered by Linux