[squid-users] Parent Proxy Cache Problem

squeeky margaretofscotland at younghouse.info
Mon Dec 15 13:26:37 UTC 2014


> Please check your config for "proxy-only" option on the link to parent 
> proxy. That alone will prevent caching. 
>
> If that option is not there, please post your config.

Still having issues with with getting content that is served from parent to
cache locally.
Config below:

http_port 10.77.40.8:8080
icp_port 7
dns_v4_first off
pid_filename /var/run/squid.pid
cache_effective_user proxy
cache_effective_group proxy
error_default_language en
icon_directory /usr/pbi/squid-i386/etc/squid/icons
visible_hostname localhost
cache_mgr admin at localhost
access_log /var/squid/logs/access.log
cache_log /var/squid/logs/cache.log
cache_store_log none
sslcrtd_children 0
logfile_rotate 0
shutdown_lifetime 3 seconds
# Allow local network(s) on interface(s)
acl localnet src  10.77.40.0/21
forwarded_for off
via off
httpd_suppress_version_string on
uri_whitespace strip

# 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
ignor
e-private

# Let the clients favorite video site through with full caching
acl youtube dstdomain .youtube.com
cache allow youtube

# Windows Update refresh_pattern
range_offset_limit -1
refresh_pattern -i microsoft.com/.*\.(cab|exe|ms[i|u|f]|asf|wm[v|a]|dat|zip)
432
0 80% 43200 reload-into-ims
refresh_pattern -i
windowsupdate.com/.*\.(cab|exe|ms[i|u|f]|asf|wm[v|a]|dat|zip)
 4320 80% 43200 reload-into-ims
refresh_pattern -i
my.windowsupdate.website.com/.*\.(cab|exe|ms[i|u|f]|asf|wm[v|
a]|dat|zip) 4320 80% 43200 reload-into-ims
cache_mem 100 MB
maximum_object_size_in_memory 32 KB
memory_replacement_policy heap LFUDA

cache_replacement_policy heap LFUDA
cache_dir ufs /var/squid/cache 6000 32 256
minimum_object_size 0 KB
maximum_object_size 5000000 KB
offline_mode oncache_swap_low 90
cache_swap_high 95

# Add any of your own refresh_pattern entries above these.
refresh_pattern ^ftp:    1440  20%  10080
refresh_pattern ^gopher:  1440  0%  1440
refresh_pattern -i (/cgi-bin/|\?) 0  0%  0
refresh_pattern .    0  20%  4320
# No redirector configured

#Remote proxies

# Setup some default acls
acl allsrc src all
acl localhost src 127.0.0.1/32
acl safeports port 21 70 80 210 280 443 488 563 591 631 777 901  3128
1025-65535

acl sslports port 443 563
acl manager proto cache_object
acl purge method PURGE
acl connect method CONNECT

# Define protocols used for redirects
acl HTTP proto HTTP
acl HTTPS proto HTTPS

acl allowed_subnets src IP.REMOVED.FOR.SECURITY
acl blacklist dstdom_regex -i "/var/squid/acl/blacklist.acl"
http_access allow manager localhost

http_access deny manager
http_access allow purge localhost
http_access deny purge
http_access deny !safeports
http_access deny CONNECT !sslports

# Always allow localhost connections
http_access allow localhost

request_body_max_size 0 KB
delay_pools 1
delay_class 1 2
delay_parameters 1 -1/-1 -1/-1
delay_initial_bucket_level 100
delay_access 1 allow allsrc

# Reverse Proxy settings

# Custom options
refresh_pattern -i .ipa$ 4320 100% 259200 override-expire reload-into-ims
ignore
-reload
refresh_pattern -i .pkg$ 4320 100% 259200 override-expire reload-into-ims
ignore
-reload
refresh_pattern -i .ipsw$ 4320 100% 259200 override-expire reload-into-ims
ignor
e-reload

cache_peer IP.REMOVED.FOR.SECURITY parent 8080 0 default
never_direct allow all

# Block access to blacklist domains
http_access deny blacklist
# Setup allowed acls
# Allow local network(s) on interface(s)
http_access allow allowed_subnets
http_access allow localnet
# Default block all to be sure
http_access deny allsrc











--
View this message in context: http://squid-web-proxy-cache.1019090.n4.nabble.com/Parent-Proxy-Cache-Problem-tp4668661p4668710.html
Sent from the Squid - Users mailing list archive at Nabble.com.


More information about the squid-users mailing list