Search squid archive

Squid Caching Problem

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello Squid Users,

i make a LoadBalancing with Squid for a Zope/Plone Cluster. I use icp and cache_peers for this task. Now I try to cache the static contents like (css,js,jpg,gif,jpg) from the cache peer. But Squid doesn´t cache.

This is an snippet from my squid.conf

----snip----
http_port 80 vhost
icp_port 3130
cache_peer 127.0.0.1 parent 8080 3131 no-digest no-netdb-exchange round-robin

# Cache Settings von CacheSetup in CacheFu
acl static_content urlpath_regex -i \.(jpg|gif|png|ico|css|js|doc|pdf|mp3)$
no_cache allow static_content

acl post_requests method POST
no_cache deny post_requests

external_acl_type is_cacheable_type children=20 %{Cookie:__ac} %{Cookie:;__ac} %{Authorization} %{If-None-Match} /opt/squid3/etc/squidAcl.py
acl is_cacheable external is_cacheable_type
no_cache allow is_cacheable

no_cache deny all

# Redirect Programm Cache Fu
redirect_program /opt/squid3/etc/iRedirector.py
redirect_children 20
redirect_rewrites_host_header off

refresh_pattern -i \.(jpg|gif|png|ico|css|js|doc|pdf|mp3)$ 60 50% 43200 reload-into-ims
refresh_pattern . 0 20% 4320
...
----/snip----

If i access the squid with a browser i got this in access.log (i have turned log_mime_hdrs on)

1134655457.058 15 192.168.2.101 TCP_MISS/304 344 GET http://fuchs/info_icon.gif - FIRST_PARENT_MISS/127.0.0.1 image/gif [Host: fuchs\r\nUser-Agent: Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.7.3) Gecko/20040910\r\nAccept: image/png,*/*;q=0.5\r\nAccept-Language: de,en;q=0.7,en-us;q=0.3\r\nAccept-Encoding: gzip,deflate\r\nAccept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7\r\nKeep-Alive: 300\r\nConnection: keep-alive\r\nReferer: http://fuchs/\r\nCookie: tree-s="eJzT0MgpMOQKVneEAteCSFt1rgIjrsSSAmMuPQB8OQfC"\r\nIf-Modified-Since: Tue, 13 Dec 2005 10:24:18 GMT\r\n] [HTTP/1.0 304 Not Modified\r\nServer: Zope/(Zope 2.8.4-final, python 2.3.5, linux2) ZServer/1.1 Plone/Unknown\r\nDate: Thu, 15 Dec 2005 14:04:17 GMT\r\nLast-Modified: Tue, 13 Dec 2005 10:24:18 GMT\r\nContent-Length: 0\r\nContent-Type: image/gif\r\nConnection: Keep-Alive\r\n\r]

Is it possible to see why squid doesn´t cache anything?
Does anyone have some tips for me?

thx christian


[Index of Archives]     [Linux Audio Users]     [Samba]     [Big List of Linux Books]     [Linux USB]     [Yosemite News]

  Powered by Linux