aboutsummaryrefslogtreecommitdiffstats
path: root/config/squid3
diff options
context:
space:
mode:
authordoktornotor <notordoktor@gmail.com>2015-09-18 18:09:39 +0200
committerdoktornotor <notordoktor@gmail.com>2015-09-18 18:09:39 +0200
commit415680944f58615b3a896b629b3e0525e1165b7d (patch)
tree03cb833f8051959064dd935378f8ed67709e4f51 /config/squid3
parent1442c7e14b09e2af7207166d764e291fa152a5fc (diff)
downloadpfsense-packages-415680944f58615b3a896b629b3e0525e1165b7d.tar.gz
pfsense-packages-415680944f58615b3a896b629b3e0525e1165b7d.tar.bz2
pfsense-packages-415680944f58615b3a896b629b3e0525e1165b7d.zip
squid3 - disable broken Youtube caching feature
Broken (Bug #3847) and not working anyway because of how YT works (http://wiki.squid-cache.org/ConfigExamples/DynamicContent/YouTube#Discussion)
Diffstat (limited to 'config/squid3')
-rwxr-xr-xconfig/squid3/34/squid.inc4
1 files changed, 3 insertions, 1 deletions
diff --git a/config/squid3/34/squid.inc b/config/squid3/34/squid.inc
index ccaba7c4..ec30910f 100755
--- a/config/squid3/34/squid.inc
+++ b/config/squid3/34/squid.inc
@@ -1073,7 +1073,8 @@ function squid_resync_cache() {
$conf.='acl dynamic urlpath_regex cgi-bin \?'."\n";
$conf.="cache deny dynamic\n";
} else if (preg_match('/youtube/',$settings['refresh_patterns'])) {
- $conf.=<<< EOC
+// Broken (Bug #3847) and not working (http://wiki.squid-cache.org/ConfigExamples/DynamicContent/YouTube#Discussion)
+/* $conf.=<<< EOC
# Break HTTP standard for flash videos. Keep them in cache even if asked not to.
refresh_pattern -i \.flv$ 10080 90% 999999 ignore-no-cache override-expire ignore-private
@@ -1082,6 +1083,7 @@ acl youtube dstdomain .youtube.com
cache allow youtube
EOC;
+*/
}
if (preg_match('/windows/',$settings['refresh_patterns'])) {
$conf.=<<< EOC