Re: [squid-users] Squid not caching some sites

2009-10-21 Thread ant2ne

Amos, 
Thanks for the assistance. I made the changes as suggested. But the teacher
is still complaining about choppiness and slow performance. I made the
suggested changes yesterday and then I tried to prime the proxy by visiting
the site and playing the video after hours. It played just fine after hours.
I feel that If I can get the proxy to grab these videos then it should
improve performance in the classroom. 

My  current squid.conf.
http_port 3128
#acl QUERY urlpath_regex cgi-bin \?
cache_mem 512 MB# May need to set lower if I run low on RAM
maximum_object_size_in_memory 4096 KB
# May need to set lower if I run low on RAM

maximum_object_size 1 GB
cache_dir aufs /cache 50 256 256
redirect_rewrites_host_header off
cache_replacement_policy lru

acl all src all
acl localnet src 10.80.0.0/255.255.0.0
acl localhost src 127.0.0.1
acl to_localhost dst 127.0.0.0/8 0.0.0.0/8
acl Safe_ports port 80 443 210 119 70 21 1025-65535
acl SSL_Ports port 443
acl CONNECT method CONNECT

http_access deny !Safe_ports
http_access deny CONNECT !SSL_Ports
http_access allow localnet
http_access allow localhost
http_access deny all

icp_port 0
refresh_pattern \.jpg$ 3600 50% 60
#ignore-reload
refresh_pattern \.gif$ 3600 50% 60
#ignore-reload
refresh_pattern \.css$ 3600 50% 60
#ignore-reload
refresh_pattern \.js$ 3600 50% 60
#ignore-reload
refresh_pattern \.html$ 300 50% 10
#ignore-reload
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

access_log /var/log/squid/access.log squid
visible_hostname AMSPX01
-- 
View this message in context: 
http://www.nabble.com/Squid-not-caching-some-sites-tp25962650p25993328.html
Sent from the Squid - Users mailing list archive at Nabble.com.



[squid-users] Squid not caching some sites

2009-10-19 Thread ant2ne

My squid web cache proxy server is not caching sites such as...
http://www.netsmartz.org/resources/reallife.htm
http://www.netsmartz.org/stories/canttake.htm
http://www.nsteens.org/videos/social-networking/

These sites contain video that, when played, are choppy and cut out. I'm
certain that these videos aren't getting cached. And this is kind of the
point to the whole web cache project. I need for teachers to be able to
cache these kinds of things, so when the students try to access them they
play quicker and more smooth. How do I convince squid to cache these?

Here is my current squid.conf

http_port 3128
acl QUERY urlpath_regex cgi-bin \?
cache_mem 512 MB# May need to set lower if I run low on RAM
maximum_object_size_in_memory 2048 KB
# May need to set lower if I run low on RAM
maximum_object_size 1 GB
cache_dir aufs /cache 50 256 256
redirect_rewrites_host_header off
cache_replacement_policy lru
acl all src all
acl localnet src 10.80.0.0/255.255.0.0
acl localhost src 127.0.0.1
acl to_localhost dst 127.0.0.0/8 0.0.0.0/8
acl Safe_ports port 80 443 210 119 70 21 1025-65535
acl SSL_Ports port 443
acl CONNECT method CONNECT
http_access deny !Safe_ports
http_access deny CONNECT !SSL_Ports
http_access allow localnet
http_access allow localhost
http_access deny all
icp_port 0
refresh_pattern \.jpg$ 3600 50% 60
refresh_pattern \.gif$ 3600 50% 60
refresh_pattern \.css$ 3600 50% 60
refresh_pattern \.js$ 3600 50% 60
refresh_pattern \.html$ 300 50% 10
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
access_log /var/log/squid/access.log squid
visible_hostname AMSPX01

-- 
View this message in context: 
http://www.nabble.com/Squid-not-caching-some-sites-tp25962650p25962650.html
Sent from the Squid - Users mailing list archive at Nabble.com.



Re: [squid-users] Squid not caching some sites

2009-10-19 Thread Amos Jeffries
On Mon, 19 Oct 2009 10:51:03 -0700 (PDT), ant2ne tcy...@altonschools.org
wrote:
 My squid web cache proxy server is not caching sites such as...
 http://www.netsmartz.org/resources/reallife.htm
 http://www.netsmartz.org/stories/canttake.htm
 http://www.nsteens.org/videos/social-networking/
 
 These sites contain video that, when played, are choppy and cut out. I'm
 certain that these videos aren't getting cached. And this is kind of the
 point to the whole web cache project. I need for teachers to be able to
 cache these kinds of things, so when the students try to access them
they
 play quicker and more smooth. How do I convince squid to cache these?

Depends on why.
Enter the page URLs at www.redbot.org to get a report about the page (the
check links sub-report will cover details of the embeded videos, images
etc)

 
 Here is my current squid.conf
 
 http_port 3128
 acl QUERY urlpath_regex cgi-bin \?

Delete the above line.

 cache_mem 512 MB# May need to set lower if I run low on RAM
 maximum_object_size_in_memory 2048 KB

The above will kill any videos 2MB as they are forced to storage on disk
before sending to the browsers.

 # May need to set lower if I run low on RAM
 maximum_object_size 1 GB
 cache_dir aufs /cache 50 256 256
 redirect_rewrites_host_header off
 cache_replacement_policy lru
 acl all src all
 acl localnet src 10.80.0.0/255.255.0.0

or in CIDR...
  acl localnet src 10.80.0.0/16

 acl localhost src 127.0.0.1
 acl to_localhost dst 127.0.0.0/8 0.0.0.0/8
 acl Safe_ports port 80 443 210 119 70 21 1025-65535
 acl SSL_Ports port 443
 acl CONNECT method CONNECT
 http_access deny !Safe_ports
 http_access deny CONNECT !SSL_Ports
 http_access allow localnet
 http_access allow localhost
 http_access deny all
 icp_port 0
 refresh_pattern \.jpg$ 3600 50% 60
 refresh_pattern \.gif$ 3600 50% 60
 refresh_pattern \.css$ 3600 50% 60
 refresh_pattern \.js$ 3600 50% 60
 refresh_pattern \.html$ 300 50% 10
 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
 access_log /var/log/squid/access.log squid
 visible_hostname AMSPX01


Amos