[squid-users] Accelerator not Caching for specified times.

From: AJ Lemke <aj.lemke@dont-contact.us>
Date: Tue, 10 Jun 2003 11:14:14 -0500

Hello List,

I have a Acceleration mode squid server. I have noticed recently that
the squid box is not caching for the specified amount of time. I have a
site that gets changed very little so I have set the expiration times
very high(1 month). I go to the page where I have set up a dynamic
timestamp and the site is cached. I go back say 8 hours later and the
site has refreshed now showing the current time. I refresh the page and
it is cached, showing the previous timestamp. I can refresh the page in
say an hour and the old timestamp will still be there. This site is a
combination between static html pages and dynamic Cold Fusion pages. I
have included the pertinent information below. If you see anything that
looks misconfigured or is not working in the config file please let me
know.

Thanks everyone for your help.

AJ

Squid Version:
Squid 2.4-Stable7

Squid Config File:
http_port 80

#Memory Allocation
cache_mem 64 MB
maximum_object_size 16384 KB
ftp_user squid_ftp@somewhere.net
request_header_max_size 10 KB
request_body_max_size 25 MB

#Directories for the log files
cache_dir ufs /var/spool/squid/cache 2048 16 256
cache_access_log /var/log/squid/access.log
cache_log /var/log/squid/cache.log
cache_store_log /var/log/squid/store.log

#Refresh Pattern Layout
# www.someUrl1.com 4 hours
refresh_pattern -i www\.someUrl1\.com 240 20% 1440
ignore-reload
refresh_pattern -i someUrl1\.com 240 20% 1440
ignore-reload

# www.someUrl2.com 4 hours
refresh_pattern -i www\.someUrl2\.com 240 20% 1440
ignore-reload
refresh_pattern -i someUrl2\.com 240 20% 1440
ignore-reload

# www.someUrl3.org 1 month
refresh_pattern -i www\.someUrl3\.org 43200 20% 1440
ignore-reload
refresh_pattern -i someUrl3\.org 43200 20% 1440
ignore-reload

# www.someUrl4.com 4 horus
refresh_pattern -i www\.someUrl4\.com 240 20% 1440
ignore-reload

# Default pattern 8 hours
refresh_pattern . 480
20% 1440 ignore-reload

#replacement_policy LFUDA
quick_abort_min 256 KB
quick_abort_max 512 KB
quick_abort_pct 0 KB
pconn_timeout 240 second
shutdown_lifetime 10 second

# Access control List
acl localhost src 127.0.0.1
acl purge method PURGE
acl manager proto cache_object
acl all src 0.0.0.0/0.0.0.0
acl accelerated_servers dst xx.xxx.xxx.82 xx.xxx.xxx.123 xx.xxx.xxx.97
xx.xxx.xxx.120 acl CONNECT method CONNECT
 

# Access Area
http_access deny CONNECT all
http_access allow manager localhost
http_access deny manager
http_access allow purge localhost
http_access deny purge
http_access allow accelerated_servers
http_access deny all

# Http Acceleration Area
cache_mgr admin@SomeURL.com
cachemgr_passwd MyPassword all

# User for Squid
cache_effective_user cache
cache_effective_group cache

#Visible Hostname
visible_hostname Squid1.SomeURL.com
httpd_accel_host squid1.SomeURL.com
httpd_accel_uses_host_header on
#httpd_accel_with_proxy off
httpd_accel_with_proxy on
#httpd_accel_host virtual
httpd_accel_port 80
forwarded_for on

# Logging Information
#buffered_logs on
log_mime_hdrs on
emulate_httpd_log on
#debug_options All,1 33,2

half_closed_clients off
#unlinkd_program /usr/local/squid/purge/purge
Received on Tue Jun 10 2003 - 10:14:38 MDT

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 17:17:18 MST