Re: [squid-users] Re: Youtube Changes

From: Amos Jeffries <squid3_at_treenet.co.nz>
Date: Wed, 24 Apr 2013 00:14:57 +1200

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
Received on Tue Apr 23 2013 - 12:15:05 MDT

This archive was generated by hypermail 2.2.0 : Tue Apr 23 2013 - 12:00:05 MDT