Greetings squid users,
I recently installed squid 3.1.9 on an RHEL 5 server, with no options when
running ./configure.
We have a proprietary tool that sends files from one machine to another over
HTTP, and I wanted to have squid always cache the files to help improve
transfer times when the tool is used from outside the building. Note that this
cache will NEVER be used to serve webpages, so I don't care about violating
HTTP protocol.
I was able to set up the acls to allow a source connection from my machine, and
to allow a destination connection to another machine. I can tell this is
working, because when I start the transfer, I see lots of HTTP GET lines in my
access.log.
I also see lots of lines in my store.log, but unfortunately, all the lines are
RELEASE lines, meaning nothing is being stored in the cache. I verified this by
running du -hs on my cache dir, and the size is never going up.
I've spent most of the day googling this issue (and looking at the squid FAQ),
and it seems most users have the problem where they are not ignoring "no-cache"
commands in the http headers. I tried to get around this in my squid.conf,
shown below:
refresh_pattern ^ftp: 1440 20% 10080 override-expire
override-lastmod ignore-reload ignore-no-cache ignore-no-store
ignore-must-revalidate ignore-private
refresh_pattern ^gopher: 1440 0% 1440 override-expire
override-lastmod ignore-reload ignore-no-cache ignore-no-store
ignore-must-revalidate ignore-private
refresh_pattern -i (/cgi-bin/|\?) 0 0% 0 override-expire
override-lastmod ignore-reload ignore-no-cache ignore-no-store
ignore-must-revalidate ignore-private
refresh_pattern . 0 20% 4320 override-expire
override-lastmod ignore-reload ignore-no-cache ignore-no-store
ignore-must-revalidate ignore-private
This doesn't seem to fix the problem, however.
I also made sure that the "squid" user is the owner of my cache_dir, and I made
sure that cache_effect_user is set to "squid". Running squid -z returns no
errors.
I'm kinda stumped at this point.
Anyone have any suggestions? Maybe a "gotcha" that I missed, or proper steps to
debug this further?
Thanks for your time,
-Adam